You have to:
- Create the variables in the subprocess.
- Use the parameters mapping to pass copy variables/expressions from parent process to subprocess.
http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-basics.html#d0e1827
Parameter in/out mapping: A sub-process node can also define in- and out-mappings for variables. The variables given in the "in" mapping will be used as parameters (with the associated parameter name) when starting the process. The variables of the child process that are defined for the "out" mappings will be copied to the variables of this process when the child process has been completed. Note that you can use "out" mappings only when "Wait for completion" is set to true. Hope this helps, Demian
Hope this helps,
Demian
Reply to this message by going to Community
Start a new discussion in jBPM at Community