# Adding MapException to a Delegate, ScriptTask, UserTask element

**URL:** <https://forum.flowable.org/t/adding-mapexception-to-a-delegate-scripttask-usertask-element/2105>\
**Category:** Flowable Engine\
**Created:** [June 7, 2018, 11:22am UTC](https://forum.flowable.org/t/adding-mapexception-to-a-delegate-scripttask-usertask-element/2105 "2018-06-07T11:22:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keshav](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/keshav/32/697_2.png) [@keshav](https://forum.flowable.org/u/keshav)\
**Post date:** [June 7, 2018, 11:22am UTC](https://forum.flowable.org/t/adding-mapexception-to-a-delegate-scripttask-usertask-element/2105/1 "2018-06-07T11:22:30Z")

</div>

Hi,

I’m trying to add **MapExceptionEntry** to my tasks and delegates when I’m trying to publish the application. The log shows that the task contains the entry but after publishing the application the bpmn 2.0 xml does not contain the required tags(flowable:mapException) in the extentionElements tag. The version we use is 6.1.2.

---

<div class="post-metadata">

**Author:** ![keshav](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/keshav/32/697_2.png) [@keshav](https://forum.flowable.org/u/keshav)\
**Post date:** [August 27, 2018, 7:10am UTC](https://forum.flowable.org/t/adding-mapexception-to-a-delegate-scripttask-usertask-element/2105/2 "2018-08-27T07:10:39Z")

</div>

Hi,

I was able to solve the issue thanks to the Docs but came up with another one. My sub process’s boundary event is not able to catch the exception/bpmn error thrown in execution listener class. I’m using flowable spring 6.1.2 to create and execute the process. Will using the latest version solve the problem?

Regards,  
Keshav.

---

<div class="post-metadata">

**Author:** ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)\
**Post date:** [August 28, 2018, 11:11am UTC](https://forum.flowable.org/t/adding-mapexception-to-a-delegate-scripttask-usertask-element/2105/3 "2018-08-28T11:11:45Z")

</div>

Hi Keshav,

Could you share a unit test showing the issue you are facing? Then we can try to reproduce it and see how it can be solved.

Best regards,

Tijs
