Skip to Content
0
Jun 11, 2018 at 12:55 PM

Claiming tasks in SCP Workflows

260 Views Last edit Jun 11, 2018 at 12:57 PM 2 rev

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!