cancel
Showing results for 
Search instead for 
Did you mean: 

Claiming tasks in SCP Workflows

kavyac
Explorer
0 Kudos

Hello SAP Community,

I am consuming SCP Workflow service's REST APIs from within a 3rd party application.

Reference: SAP WFS API

When a user clicks on the claim button from the UI, the PATCH call to

/v1/task-instances/{taskInstanceId}

is made by providing the associated User ID as value to the "processor" field.

This enables the respective user to claim the task.

When this task is claimed, I want to be able to make certain updates to the workflow context. However, I have not been able to find a way to get the workflow to understand that the task has been reserved.

I can of course see that the execution log shows that the "processor" property of the user task has been updated. But beyond that there seems to be no way to programmatically listen to this event.

The task API doesn't allow updating the context without changing the status to "COMPLETED". And I wouldn't want to make a separate workflow instance level call simply to update the context.

My question is, how do I change the workflow context whenever someone claims the task?

Any help would be greatly appreciated!

gregorw
Active Contributor

Maybe dj.adams can help here.

0 Kudos

Hi kavyac,


right now I am facing the same problem.
I am not able to update the user task without setting the status to "COMPLETED".

Due to security reasons I do not want the user to be able to update the context via the Workflow Instance directly. This way he could update other workflow instances, which are not assigned to him.

Did you find a solution?

Thank you and best,
Tim

Accepted Solutions (0)

Answers (0)