[jboss-user] [jBPM] - In jbpm 4.3, how to get the incoming node name in the next node?
HuiSheng Xu
do-not-reply at jboss.com
Tue Aug 17 20:43:13 EDT 2010
HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"In jbpm 4.3, how to get the incoming node name in the next node?"
To view the discussion, visit: http://community.jboss.org/message/557784#557784
--------------------------------------------------------------
Hi Tun,
You have to cast execution to ExecutionImpl. Then get the current activity of this execution. Something like this:
ExecutionImpl executionImpl = (ExecutionImpl) execution;
Activity activity = executionImpl.getActivity();
List<? extends Transition> incomingTransitions = activity.getIncomingTransitions();
for (Transition transition : incomingTransitions) {
Activity incomingActivity = transition.getSource();
// here is the name of incomging activity
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/557784#557784]
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/20100817/b82caf81/attachment.html
More information about the jboss-user
mailing list