[jboss-user] [jBPM] - How to get a list of available transitions for an ActivityExecution
Jorge Ferreira
do-not-reply at jboss.com
Fri Jun 25 12:22:03 EDT 2010
Jorge Ferreira [http://community.jboss.org/people/imjorge] replied to the discussion
"How to get a list of available transitions for an ActivityExecution"
To view the discussion, visit: http://community.jboss.org/message/549736#549736
--------------------------------------------------------------
I do not know if this can be achieved with the public API. If there is you SHOULD prefer that solution to the one that I present below.
> ActivityExecution execution = ...;
> ExecutionImpl executionImpl = (ExecutionImpl) execution;
> ActivityImpl activityImpl = executionImpl.getActivity();
> Map<String, Transition> transitions = activityImpl.getOutgoingTransitionsMap(); // the leaving transitions, keyed by transition name
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/549736#549736]
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/20100625/920c2aa5/attachment-0001.html
More information about the jboss-user
mailing list