JBoss Community

jBPM5 - How to abort a already running ProcessInstance?

created by scurvo in jBPM - View the full discussion

Hi all,

 

I wanted to stop/abort a running process but don't know how.

I create my KnowledgeBase, the StatefulSession, and the WorkItem for the Service Task for the process and I startProcess(...), but how do i stop it before it reaches the end?

 

I seen the "void abortProcessInstance(long processInstanceId);" function but it doesn't do nothing and the process continues.

 

Anyone can help :( ?

Reply to this message by going to Community

Start a new discussion in jBPM at Community