JBoss Community

Re: How to reject/Stop/cancel the process instance

created by Arun V G in jBPM - View the full discussion

Try the below method  if  what you want is to abort a process

 

 

org.drools.runtime.StatefulKnowledgeSession.abortProcessInstance(long processInstanceId)

 

Documentation says :

 

Aborts the process instance with the given id.  If the process instance has been completed (or aborted), or the process instance cannot be found, this method will throw an IllegalArgumentException.

Reply to this message by going to Community

Start a new discussion in jBPM at Community