Hi Maceij,
Thank you very much for the reply.
But some issues,
if (openExecutio.getSubProcessInstance() != null) {
String id = openExecutio.getSubProcessInstance().getId();
System.out.println("----id====" + id);
System.out.println("----Active activity Names in Subprocess SubProc.jpdl.xml-----------="+ openExecutio.getSubProcessInstance()
.findActiveActivityNames()); //It printed as ----Active activity Names in Subprocess SubProc.jpdl.xml-----------=[printHelloWorld]
//Should Signal it from "printHelloWorld" state node to "printHelloWorld1" java node in the Subprocess SubProc.jpdl.xml
executionService.signalExecutionById(id, "printHelloWorld1");
//It is got transitioned and
/* It printed
<---------------->
HELLO FELIX!
<---------------->
*/
System.out.println("----Active activity Names in Subprocess SubProc.jpdl.xml-----------="+ openExecutio.getSubProcessInstance().findActiveActivityNames());
//It printed as ----Active activity Names in Subprocess SubProc.jpdl.xml-----------=[printHelloWorld]. Here is the doubt, again the active activity name is get as [printHelloWorld].
System.out.println("State of the subprocess=="+openExecutio.getSubProcessInstance().getState());
//It printed as "State of the subprocess==active-root". That means the subprocess is still active.
}
And the at the last lines I am getting some different output from what you got i.e:
System.out.println(processInstance.findActiveActivityNames());
//It printed as '[Being1, review]'
System.out.println(processInstance.getParent());
// It printed as 'null'
System.out.println(processInstance.getExecutions());
// It printed as '[execution[helloWorld.13.Being1], execution[helloWorld.13.review]]'
How does it happen?
And when I checked state in the suprocesss execution it gives as active-concurrent
Can you please help me on the same? And please let me know about this as soon as possible?.
Sorry to disturb you...
Thank You Very Much,
With Regards,
Felix Jose