Felix Jose [
http://community.jboss.org/people/FelixKJose] replied to the discussion
"Subprocess transition in a fork is not working"
To view the discussion, visit:
http://community.jboss.org/message/546439#546439
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/546439#546439]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]