JBoss Community

jBPM 4.x suspend/Resume

created by Tony D in jBPM - View the full discussion

I have some processes which are having java activity nodes which are refering to EJB's. My Process.jpdl.xml file has only one async node during the start. As per the docs a new transaction is started at every a sync node so in my case my entire workflow will be processes into a single Thread (transaction). If suppose i call a jboss shutdown in while the process is execution then goes into an error state.

 

Is there any way in which i can suspend the current Process instance and then again start when the server is started ? i.e. wait for the process instance to complete the current activity and then go to suspend and then again continue from the next activity when again server is started.

 

I tried by getExecutionService().endProcessInstance("processinstanceid", Execution.STATE_SUSPENDED); But was not suspending the process.

 

Any Help would be highly appreciated.

 

Thanks.

Reply to this message by going to Community

Start a new discussion in jBPM at Community