cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Build Process Automation API

purva_gaikwad
Explorer
0 Likes
1,337

Hello,

I have a requirement to cancel the workflow in SBPA. the sue case is - User will trigger a workflow cancellation from SAPUI5 app and it should change the status to CANCELLED.

How can this be achieved? Is any API available?

Accepted Solutions (0)

Answers (3)

Answers (3)

maheshpalavalli
Active Contributor
0 Likes

Hi Purva,

You can check out my post on consuming the buid api in a cap service: (use the first approach, client credentials)

https://blogs.sap.com/2023/02/08/consuming-sap-build-apis-made-easy-with-sap-cloud-sdk-in-your-sap-c...

Regards,
Mahesh

Archana
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Purva,

If you want the user to cancel the workflow then that user must have ProcessAutomationAdmin role. You can also use client credentials to cancel the workflow but with this you may loose the trace of who cancelled the workflow because it will always be a fixed client. You can decide accordingly.

Regards,
Archana

purva_gaikwad
Explorer
0 Likes

Hi Archana,

Is there a way we can wrap this API as a CAP service and then use it so that we don't require admin role? Or if we can use a dummy user and assign process automation admin role to only that user and use this user for cancellation of workflow?

Just want to know if there is any workaround to handle the admin role(as we cannot provide admin role to all our users)

Isyraf_Afifi
Explorer
0 Likes

-

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes
purva_gaikwad
Explorer
0 Likes

Hi Daniel,

This API requires Process Automation Admin Role. Is there a way we can use this API without the admin role as we cannot provide admin roles to all our users?

Thanks in advance.

Isyraf_Afifi
Explorer
0 Likes

-