[jboss-user] [jBPM] - jBPM get outgoing Transition names

Maciej Swiderski do-not-reply at jboss.com
Thu Mar 25 06:16:52 EDT 2010


Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion

"jBPM get outgoing Transition names"

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

--------------------------------------------------------------
Hi,

so to get active node(s) you can use your execution instance:

execution.getActiveActivityNames()

This will return all active nodes for your execution or null if none is active.

Next, you can iterate over this and get each active node execution by using execution instance again:

execution.findActiveExecutionIn(activityName)

That will return new execution object.

Here starts not so nice usage.... you can cat that execution to ExecutionImpl and then you could access getActivity method and then getOutgoingTransitions...

I heard that there are issues in jira to get such functionality as part of public API so you could go through jira to check it out.

Please take a look at java docs for more details.

HTH
Maciej

--------------------------------------------------------------

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

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/20100325/82a03a10/attachment.html 


More information about the jboss-user mailing list