[jboss-user] [jBPM Users] - Re: Extracting information from a jpdl file

saraswati.santanu do-not-reply at jboss.com
Tue Dec 8 12:32:09 EST 2009


It is possible to get the outcomes if your current wait node is a task node. Since task node is the node for manual tasks, it might somewhat serve your purpose. This is the code for getting outcome for a task node:


  | taskService.getOutcomes(task.getId())
  | 

If the wait node is some other wait node like "state" node, then there is no standard way to get the outcome. However you can still manage to get them, but the code may not look as clean.


  | //executionImpl can be obtained in multiple ways
  | //typically it can be obtained by type casting current process instance
  | //ExecutionImpl executionImpl = (ExecutionImpl)processInstance;
  | executionImpl.getActivity().getOutgoingTransitions();
  | 


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269640#4269640

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269640



More information about the jboss-user mailing list