cancel
Showing results for 
Search instead for 
Did you mean: 

How to recall a workflow?

former_member839964
Discoverer
0 Kudos
483

Hello Experts,

I am using SAP workflow management for approval. I'm trying to recall submitted workflow before approver approves it. We can terminate the workflow instance using APIs but to change workflow's status we need to have workflowmanagementadmin role assigned to user ID. Can we do it without having workflowmanagementadmin?

Thanks,
Megha Chavare

Accepted Solutions (0)

Answers (1)

Answers (1)

tobias_breyer
Product and Topic Expert
Product and Topic Expert

Hi Megha,

whenever there is an external action required, like with a REST API, you will need some sort of permission as you need to authenticate.

For example, if you model your workflow in a way that it waits for a message, while the approval task is also open, you can have the instance complete by triggering the Message REST API and the follow-up steps leading to a terminating end event. But still you need to take care that the authentication of the Message REST API call is appropriate with respect to a security concept. There is a respective role (WorkflowMessageSender) which is specifically focused on this, i.e. it is much less powerful than the WorkflowAdmin.

See documentation:

https://help.sap.com/docs/WORKFLOW/e157c391253b4ecd93647bf232d18a83/731a6484ed364185bb97b8a67b2909c8... (Events overview)

https://help.sap.com/docs/WORKFLOW/e157c391253b4ecd93647bf232d18a83/56d343e4e6d24ec9872b4847eec53e1c... (Intermediate Message Event)

https://help.sap.com/docs/WORKFLOW/e157c391253b4ecd93647bf232d18a83/103f2b307af142e5a91368c1539dea57... (Authorization Configuration)

https://api.sap.com/api/SAP_CP_Workflow_CF/resource (API docs -> Messages section)

Regards,

Tobias