Having the following definition in my BPMN model (Flowable Engine):
<callActivity id="111-example-111" name="CALLING_SUBPROCESS_MULTIINSTANCE" calledElement="SOME_SUBPROCESS" flowable:calledElementType="key" flowable:fallbackToDefaultTenant="false">
<extensionElement>
<flowable:in source="INPUT_VAR" target="SUB_INPUT_VAR"></flowable:in>
<flowable:out source="SUB_OUTPUT_VAR" target="OUTPUT_VAR"></flowable:out>
</extensionElement>
<multiInstanceLoopCharacteristics isSequential="true" flowable:collection="SOME_COLLECTION" flowable:elementVariable="SOME_ELEMENT"></multiInstanceLoopCharacteristics>
call activity is correctly processed but I am unable to pass the output variable SUB_OUTPUT_VAR
to the parent process. I tried some other syntax like:
<flowable:out source="SUB_OUTPUT_VAR" target="OUTPUT_VAR_${loopCounter}"></flowable:out>
because each loop can produce SUB_OUTPUT_VAR
and I want to pass all of them to the parent process. But it didn't help.
Is there any way to do it using Flowable BPMN Engine?