# Out Parameters not working with Multi-Instance (Seq.) Call Activity

**URL:** <https://forum.flowable.org/t/out-parameters-not-working-with-multi-instance-seq-call-activity/5128>\
**Category:** Flowable Engine\
**Created:** [December 23, 2019, 6:45am UTC](https://forum.flowable.org/t/out-parameters-not-working-with-multi-instance-seq-call-activity/5128 "2019-12-23T06:45:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrey.bhasin](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@shrey.bhasin](https://forum.flowable.org/u/shrey.bhasin)\
**Post date:** [December 23, 2019, 6:45am UTC](https://forum.flowable.org/t/out-parameters-not-working-with-multi-instance-seq-call-activity/5128/1 "2019-12-23T06:45:00Z")

</div>

Hi,

When out parameters are given in a call activity w/o multi-instance the variables are copied from called process to calling process.

But when multi-instance is selected for a call activity the variables are not copied.

Flowable Version - 6.4.1

Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [December 23, 2019, 6:30pm UTC](https://forum.flowable.org/t/out-parameters-not-working-with-multi-instance-seq-call-activity/5128/2 "2019-12-23T18:30:45Z")

</div>

It’s interesting that it ignores the output, though I’m kind of curious what the expected behavior should be. Should it keep overwriting the output variables until it’s done? Should it wrap all of the outputs into another collection?

---

<div class="post-metadata">

**Author:** ![shrey.bhasin](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@shrey.bhasin](https://forum.flowable.org/u/shrey.bhasin)\
**Post date:** [December 24, 2019, 5:51am UTC](https://forum.flowable.org/t/out-parameters-not-working-with-multi-instance-seq-call-activity/5128/3 "2019-12-24T05:51:20Z")

</div>

In case of a user task with multi-instance it keeps on overriding the variables.

What I want to achieve from this multi-instance call activity is that when a called process returns a variable, say _terminate_ as true then the calling process doesn’t run remaining instances and the call activity gets completed.

I was planning to do this by _Completion Condition_ as ${skip}. But the problem is i m unable to send that skip variable to the calling process.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [January 6, 2020, 9:09pm UTC](https://forum.flowable.org/t/out-parameters-not-working-with-multi-instance-seq-call-activity/5128/4 "2020-01-06T21:09:17Z")

</div>

> [@wwitt](#):
>
> Should it wrap all of the outputs into another collection?

That sounds to me like the best approach (which would be a new feature) - some sorts of aggregator that consolidates all of the data. Right now you’d have to (e.g. with an execution listener just before the end of the child process) copy the variables to a collection (e.g. a json array) on the parent execution to get something similar.

---

<div class="post-metadata">

**Author:** ![theghost5800](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@theghost5800](https://forum.flowable.org/u/theghost5800)\
**Post date:** [September 9, 2020, 12:59pm UTC](https://forum.flowable.org/t/out-parameters-not-working-with-multi-instance-seq-call-activity/5128/5 "2020-09-09T12:59:24Z")

</div>

Can I ask what is the status of the feature? Is there any other solutions of this problem?

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [September 13, 2020, 8:45pm UTC](https://forum.flowable.org/t/out-parameters-not-working-with-multi-instance-seq-call-activity/5128/6 "2020-09-13T20:45:47Z")

</div>

It’s being worked on, see this branch: [https://github.com/flowable/flowable-engine/tree/variable-aggregation](https://github.com/flowable/flowable-engine/tree/variable-aggregation)

As it’s a quite complex feature, it still needs more testing and polishing before it’ll end up on master.
