[jboss-user] [jBPM] - Subprocess transition in a fork is not working

Felix Jose do-not-reply at jboss.com
Mon Jun 7 07:29:18 EDT 2010


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100607/1d047e1f/attachment.html 


More information about the jboss-user mailing list