1 Reply Latest reply on Feb 16, 2012 6:51 AM by arunvg

    How to reject/Stop/cancel the process instance

    jbpm_new

      Hi JBPM users,

       

            Please share your views on how to reject/stop/cancel the process instances after launching it.

       

      Thanks

        • 1. Re: How to reject/Stop/cancel the process instance
          arunvg

          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.