In a sub process, all the parent workflow variables are accessible, however, in a called process, each variable must be explicitly passed. We are not so concerned with variables returned from the called process. Is there an easy way to pass all variables from the parent into the called process? We like the isolation provided by a sub-process, but desire the reuse provided by a called process.
Found an answer, thought I'd post for others to use. In the called process, define a start event listener that looks up the super execution and pulls all the variables local. Very handy and easy.
<code> public class WorkflowVariableInjectorListener implements ExecutionListener { private static final long serialVersionUID = 1L;