I am implementing a call activity with a sub process. I need to pass variables into sub process and it will pass variables back to the parent. I am able to pass variables into the sub-process but unable to pass the variables back to the parent process. I am attaching the template test case. Also found a similar thread abandoned 2 years ago:
String message = "Hello " + input; System.out.println(message); execution.setVariable("output", message); System.out.println("Variables before the sub process completes:" + execution.getVariables()); }
}</java>
Test:
<java>public class MyUnitTest {
@Rule public ActivitiRule activitiRule = new ActivitiRule();
I wasn't calling leave() in my HelloWorld -TaskActivityBehavior. The call activity never completed and output variables never propagated to the parent process. Thanks.