This content has been marked as final.
Show 3 replies
-
1. Re: How to find current waiting node
swiderski.maciej May 20, 2010 3:51 AM (in response to kshen)Hi,
to get currently active nodes you can use:
processInstance.findActiveActivityNames()
For more details please take a look at JavaDocs: http://docs.jboss.com/jbpm/v4/javadocs/
HTH
Maciej
-
2. Re: How to find current waiting node
mohreece May 20, 2010 6:05 AM (in response to kshen)Hi Kiran,
Since you were referring to jBPM 3.2.8 in your previous post, I think Maciej's response is not exactly what you're looking for (no offense!).
To find the current node for a process instance in jBPM 3, you go through the token:
Node currentNode = procInst.getRootToken().getNode();
You can then get at its name, transitions, etc.
Regards,
Maurice
-
3. Re: How to find current waiting node
kshen May 20, 2010 3:12 PM (in response to mohreece)Thanks a lot Maurice.
It worked like a charm. Sorry i forgot to put my version of jBPM on the post and you are right am on 3.2.8