Community

The external Trigger makes the transition from subprocess node to the next node while subprocess is active.

created by Felix Jose in jBPM - View the full discussion

Hi All,

 

I was using the "SubProcessDocument.jpdl.xml" and "SubProcessReview.jpdl.xml" from the "examples\src\org\jbpm\examples\subprocess\outcomeactivity" given in the jbpm-4.3 examples. In my sample program I have done

 

ProcessInstance processInstance =executionService.startProcessInstanceByKey("SubProcessDocument");

assertNotNull(processInstance.findActiveExecutionIn("review"));

processInstance = executionService.signalExecutionById(processInstance.getId());

 

executionService

 

.findProcessInstanceById(processInstance.getId());

assertNotNull(processInstance.findActiveExecutionIn(

"next step"));

 

So the transition is happend from "review" to "next step" instead of waiting for the output from the SubProcessReview subprocess.

 

Is this an expected result ?

or whether the main execution should not be able to transition from subprocess state to next state untill and unless the subprocess execution is completed?

Reply to this message by going to Community

Start a new discussion in jBPM at Community