# Output Parameter Mapping by different ways to end a rerenced process instance

**URL:** <https://forum.flowable.org/t/output-parameter-mapping-by-different-ways-to-end-a-rerenced-process-instance/7064>\
**Category:** Flowable Engine\
**Created:** [November 11, 2020, 2:28pm UTC](https://forum.flowable.org/t/output-parameter-mapping-by-different-ways-to-end-a-rerenced-process-instance/7064 "2020-11-11T14:28:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tina.bandalo](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@tina.bandalo](https://forum.flowable.org/u/tina.bandalo)\
**Post date:** [November 11, 2020, 2:28pm UTC](https://forum.flowable.org/t/output-parameter-mapping-by-different-ways-to-end-a-rerenced-process-instance/7064/1 "2020-11-11T14:28:34Z")

</div>

Following behavior happens:

When a process instance is started whithin a Call Activity is deleted by RuntimeService#deleteProcessInstance, the CallActivityBehavior#completing method is called and output parameter mapping is performed. However, when a process instance started within a Call Activity is canceled by a boundary event (with cancelActivity=true) attached to the call activity, then here it is not the case.

Is this an intented behavior and if so, what is the consideration behind that?

---

<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:** [November 16, 2020, 8:30pm UTC](https://forum.flowable.org/t/output-parameter-mapping-by-different-ways-to-end-a-rerenced-process-instance/7064/2 "2020-11-16T20:30:45Z")

</div>

No, that doesn’t sound as intended.

I would actually assume that in both cases no output mapping happens, as the called process instance never reached the end (and thus the output variables could potentially not have been created).

---

<div class="post-metadata">

**Author:** ![tina.bandalo](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@tina.bandalo](https://forum.flowable.org/u/tina.bandalo)\
**Post date:** [November 17, 2020, 10:41am UTC](https://forum.flowable.org/t/output-parameter-mapping-by-different-ways-to-end-a-rerenced-process-instance/7064/3 "2020-11-17T10:41:20Z")

</div>

@joram so that means there will be a change in the product for this?
