14 Replies Latest reply on Feb 14, 2012 11:03 AM by scurvo

    jBPM5 - How to abort a already running ProcessInstance?

    scurvo Newbie

      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 ?