Hi, thank you for your answer!
I have managed to call a process from my main process, but I'm having problem calling my sub process with my process variables in my main process. I get an error saying that:
<code>
org.activiti.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior - Exception while executing subprocess : problem evaluating script: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: processVariables for class: Script3
</code>
I call my subprocess using a callActivity in my main process:
<code>
<callActivity id="callSubProcess" calledElement="subprocess">
<extensionElements>
<activiti:in source="processVariables" target="${processVariables}" />
</extensionElements>
</callActivity>
</code>
And the process variables are defined in my main process and sub process like this:
<code>
<extensionElements>
<activiti:in source="processVariables" target="${processVariables}" />
</extensionElements>
</code>
Help please, what am I missing?