[jboss-user] [JBoss jBPM] - Re: Automate Workflow Steps

salaboy21 do-not-reply at jboss.com
Mon Jul 7 16:15:15 EDT 2008


You have both answers in your code:
First, when you define an action in a node, you must implement the code to 
continue the execution with:
 
  | 		context.leaveNode();
  | 
At the end of your code in your ActionHandler execute method.

Second, if you want to pass values from one node to another the best way is ProcessVariables that you can store doing:

  |                context.getContextInstance().setVariable("Variable1", "Hello");
  | 
and then in the other action handler you can get the value with

  |               String var1=b(String) context.getContextInstance().getVariable("Variable1");
  | 
Hope it helps

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

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



More information about the jboss-user mailing list