AnsweredAssumed Answered

Call Activity Multi-Instance 'return'-Variables

Question asked by se040 on Feb 23, 2013
Latest reply on Apr 10, 2013 by jbarrez
Hi everybody,

i have a process in which a Call Activity is called multiple times as a sequential Multi-Instance Activity. The only problem is that the "return"-Variable (activiti:out) from the Call Activity never seems to be set after finish so that i can't use the required variables. I have created a Workaround by using a "hand-written" counter and an exclusive gateway to create a loop around the Activity and it works fine like that. I would much rather use the Multi-Instance solution, so I am wondering if I stumbled over a bug or I screwed something up.

<callActivity id="callProcess" name="Call activity" calledElement="callProcess4">
        <activiti:in source="instances" target="callInstances"></activiti:in>
        <activiti:in source="currently" target="callCurrently"></activiti:in>
        <activiti:in source="objects" target="callObjects"></activiti:in>
        <activiti:in source="result" target="resultInCall"></activiti:in>
        <activiti:out source="resultInCall" target="result"></activiti:out>
      <multiInstanceLoopCharacteristics isSequential="true" activiti:collection="instances" activiti:elementVariable="currently"></multiInstanceLoopCharacteristics>

I have created this demo to check if there was something wrong with my original Process but I got the same result. The variable result is set before call to a certain String and set to a different one after it, only that it is the same after as before the call activity.

I am thankful for any help.

Thanks in advance,