[jboss-user] [jBPM] - Re: How do you get the active node of a process

Esteban Aliverti do-not-reply at jboss.com
Thu May 5 11:53:46 EDT 2011


Esteban Aliverti [http://community.jboss.org/people/eaa] created the discussion

"Re: How do you get the active node of a process"

To view the discussion, visit: http://community.jboss.org/message/603734#603734

--------------------------------------------------------------
You nees to use one of the "magic" castings of jBPM...  :) 
For example:

+WorkflowProcessInstance process = (WorkflowProcessInstance) ksession.startProcess("some.id");+
+Assert.assertEquals("Ask for Emergency Information", *process.getNodeInstances().iterator().next().getNodeName()*);+

Remember that the active nodes are those that left the process instance in a waiting state. So, for example, you will never see a Script Task here.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/603734#603734]

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/20110505/696b33ed/attachment.html 


More information about the jboss-user mailing list