cancel
Showing results for 
Search instead for 
Did you mean: 

Terminate execution of currently executing workflow

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello,

Assume i have a Workflow. We are using Community Edition

Start -> ServiceTask1 -> User Task1 ->ServiceTask2 ->End

Now my execution is in the middle of Service Task1. We have a GUI to say terminate the Process.
It should terminate the complete execution of Workflow
(Its fine if it completes ServiceTask1 and Terminate, but it shouldn't execute UserTask1 and ServiceTask2)

Please recommend some API if it is present in activiti already/how to achieve it?

Regards,
Chandan
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
deleteProcessInstance on the runtimeService does exactly that.

Thanks it worked !!!!!