cancel
Showing results for 
Search instead for 
Did you mean: 

Call Activity Multi-Instance 'return'-Variables

se040
Champ in-the-making
Champ in-the-making
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 (activitiSmiley Surprisedut) 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">
      <extensionElements>
        <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>
        <activitiSmiley Surprisedut source="resultInCall" target="result"></activitiSmiley Surprisedut>
      </extensionElements>
      <multiInstanceLoopCharacteristics isSequential="true" activiti:collection="instances" activiti:elementVariable="currently"></multiInstanceLoopCharacteristics>
</callActivity>

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,
Stefan
3 REPLIES 3

araghuraman
Champ in-the-making
Champ in-the-making
Multi-instance call activity output parameters does not work (or is not implemented) in 5.11 as per my understanding.

View my message at the bottom of this thread for a workaround:
http://forums.activiti.org/en/viewtopic.php?f=6&t=2582

oconnor0
Champ in-the-making
Champ in-the-making
Multi-instance call activity output parameters does not work (or is not implemented) in 5.11 as per my understanding.

View my message at the bottom of this thread for a workaround:
http://forums.activiti.org/en/viewtopic.php?f=6&t=2582

Has this been implemented for 5.12? And, if not, is there an expected implementation date for this?

jbarrez
Star Contributor
Star Contributor
No, there's currently nothing planned like that.