How to abort or end activity?

Confluence User - 02 Oct, 2018

Hi,
I has a question about design process flow. I has attached a picture.
In this picture, kpp create and sent arahan to pp.
After sent arahan, pp can accept the arahan or kpp can cancel the arahan.
The business flow is if pp accept the arahan, kpp cannot cancel the arahan.
OR if kpp cancel the arahan, pp cannot accept the arahan.
my question is, how do i achieve this condition? i dont know how to abort or end the activity that we do not what to use anymore. Please help me.

 

process

1


02 Oct, 2018
confluenceUser
1
confluenceUser

Hey there izzat,

If you are writing Java via bean shell, you can use WorkflowManager#activityAbort.

Or you can also use this JSON API: JSON API#web/json/monitoring/activity/abort/(*:processId)/(*:activityDefId).

Hope this helps!

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print