[jboss-user] [JBoss jBPM] - Re: passing task variables

salaboy21 do-not-reply at jboss.com
Mon Oct 20 07:36:47 EDT 2008


I think the best solution is to use the variable tag in your subprocess definition to insert a variable in the sub process.

  |  <process-state name="SubProcess State">
  |     <sub-process name="SubProcess" />
  |     <variable name="variable1" access="read" />
  |     <transition to="A SuperProcess Node" />
  |   </process-state>
  | 

In the code above you take the variable named variable1 from the processInstance (ContextInstance.getVariable) and insert it to the subprocess instance.

I hope it helps...


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

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



More information about the jboss-user mailing list