1
0
-1

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.

 

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      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!

        CommentAdd your comment...