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?