cancel
Showing results for 
Search instead for 
Did you mean: 

SAP BTP Workflow - Service task failed with status code 503.

wskaw
Explorer
0 Kudos

Hello,

In my scenario I have two parallel UserTasks. If one of them is rejected I want to close the second one. I have configured ServiceTask with parameters as in a screenshot and request variable looks like this:{

"status": "COMPLETED"}

For that in bpmworkflowruntime destination I changed a type of authentication to OAuth2ClientCredentials.

I want to add that the GET call works, I also tried using postman and I am able to make PATCH call from it and close the second UserTask.

Here is an error from Monitor Workflows app:

Best Regards

Wiktor

View Entire Topic
tobias_breyer
Contributor

Hi Wiktor,

you cannot update a workflow/task instance using REST APIs from within the same workflow instance. See note 2884301. You effectively either need to find a BPMN modeling that has the desired effect, or you need to move the PATCH outside of the very same workflow/task instance it wants to update. The latter is also why the Postman approach works: it triggers outside of the workflow instance itself. So you are not reproducing the same situation with Postman than what you model.

Regards,

Tobias