# Throw BpmnError in overriden .trigger(..)-method

**URL:** <https://forum.flowable.org/t/throw-bpmnerror-in-overriden-trigger-method/3562>\
**Category:** Flowable Engine\
**Created:** [March 13, 2019, 2:43pm UTC](https://forum.flowable.org/t/throw-bpmnerror-in-overriden-trigger-method/3562 "2019-03-13T14:43:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbexx](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@sbexx](https://forum.flowable.org/u/sbexx)\
**Post date:** [March 13, 2019, 2:43pm UTC](https://forum.flowable.org/t/throw-bpmnerror-in-overriden-trigger-method/3562/1 "2019-03-13T14:43:06Z")

</div>

Hello flowable-team,

as suggested [here](https://forum.flowable.org/t/received-message-before-messageeventsubcription-was-added/3301), we try to develop an Send-and-Receive-Task by implementing _TriggerableActivityBehavior_.

Dependent on the received answer, we tried to bind an _BoundaryErrorEvent_ to the Triggerable activity.

While throwing a _new BpmnError(“foo”)_ in the _.execute_-method works as expected, throwing the error inside the _.trigger_-part won’t catch the error in the boundary error event.

I found a pretty old [thread](https://community.alfresco.com/thread/224478-throwing-an-exception-from-a-signal-method#comment-30075) dealing with the same problem - but I couldn’t find out if this problem was solved or if the workaround is still appropriate.

Are there any news regarding this topic?

Thank you for your efforts!

---

<div class="post-metadata">

**Author:** ![wkotula](https://avatars.discourse-cdn.com/v4/letter/w/f4b2a3/32.png) [@wkotula](https://forum.flowable.org/u/wkotula)\
**Post date:** [January 23, 2020, 3:58pm UTC](https://forum.flowable.org/t/throw-bpmnerror-in-overriden-trigger-method/3562/2 "2020-01-23T15:58:02Z")

</div>

Hello,  
I have the same problem. Did you find any solution for it ?

Best regards

---

<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:** [February 4, 2020, 8:33am UTC](https://forum.flowable.org/t/throw-bpmnerror-in-overriden-trigger-method/3562/3 "2020-02-04T08:33:03Z")

</div>

I don’t believe it works in the trigger() method, that would be a new feature that needs to be added.

---

<div class="post-metadata">

**Author:** ![fufu](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/fufu/32/1959_2.png) [@fufu](https://forum.flowable.org/u/fufu)\
**Post date:** [August 28, 2020, 10:18am UTC](https://forum.flowable.org/t/throw-bpmnerror-in-overriden-trigger-method/3562/4 "2020-08-28T10:18:14Z")

</div>

Hello,  
I have the same issue here. The Boundary Error Event is ignored when throwing a BpmnError from TriggerableActivityBehavior#trigger(…) :’(

I use version 6.4.2 of flowable. Is there any plan to fix this?

Thanks
