JBoss Community

Re: Problem terminating concurent executions that have active sub-processes [jBPM 4.3/4.4 + Oracle]

created by saig0 in jBPM - View the full discussion

Hi,

 

I tried a bit with your changes to resolve my problem and it seems that I found a fix.

I suspend the sub process instance instead of end it:

 

 // terminates the sub-process if it exists
        if (subProcessInstance != null)
 // terminates the sub-process if it exists
 if (subProcessInstance != null)
 {
     // to avoid the return signal (see superProcessExecution.signal() in
     // the end(String state) method)
     subProcessInstance.setSuperProcessExecution(null);
     subProcessInstance.suspend();
 }

 

Can you verify my changes?

Reply to this message by going to Community

Start a new discussion in jBPM at Community