# Error notifications

**URL:** <https://forum.flowable.org/t/error-notifications/2130>\
**Category:** Flowable Engine\
**Created:** [June 13, 2018, 5:13pm UTC](https://forum.flowable.org/t/error-notifications/2130 "2018-06-13T17:13:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdot](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@bdot](https://forum.flowable.org/u/bdot)\
**Post date:** [June 13, 2018, 5:13pm UTC](https://forum.flowable.org/t/error-notifications/2130/1 "2018-06-13T17:13:32Z")

</div>

Setup : Flowable 6.3.1 with Spring Boot Rest API

We are exploring option to send an error notification (may be an email) if there is any problem with bpmn/dmn during execution. Any idea if this is something achievable without modifying any process/dmn, perhaps using some sort of Listener/Interceptor. Has anyone tried something like this before?

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [June 14, 2018, 6:00am UTC](https://forum.flowable.org/t/error-notifications/2130/2 "2018-06-14T06:00:21Z")

</div>

Hi,

When you want to handle notification in process model you can throw BpmnError and catch it by Error catch event. See e.g. org.flowable.engine.test.bpmn.event.error.BoundaryErrorEventTest. or [https://www.flowable.org/docs/userguide/index.html#bpmnErrorStartEvent](https://www.flowable.org/docs/userguide/index.html#bpmnErrorStartEvent)

How to do that without process model modification. I would [hook into process parsing](https://www.flowable.org/docs/userguide/index.html#advanced_parseHandlers/) And add event subprocess automatically during process definition parsing.

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![bdot](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@bdot](https://forum.flowable.org/u/bdot)\
**Post date:** [June 14, 2018, 8:05am UTC](https://forum.flowable.org/t/error-notifications/2130/3 "2018-06-14T08:05:22Z")

</div>

Thanks for taking look @martin.grofcik

Looking for a solution that does NOT involve any process/dmn modifications. May be something like an Interceptor. Probably we can make use of Spring Interceptors directly. Still looking.

---

<div class="post-metadata">

**Author:** ![pstapleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/pstapleton/32/678_2.png) [@pstapleton](https://forum.flowable.org/u/pstapleton)\
**Post date:** [June 14, 2018, 9:52am UTC](https://forum.flowable.org/t/error-notifications/2130/4 "2018-06-14T09:52:42Z")

</div>

Have you tried with a FlowableEventListener?

[https://www.flowable.org/docs/userguide/index.html#eventDispatcher](https://www.flowable.org/docs/userguide/index.html#eventDispatcher)

You should be able to register this on the process engine and listen for various events ([https://www.flowable.org/docs/userguide/index.html#eventDispatcherEventTypes](https://www.flowable.org/docs/userguide/index.html#eventDispatcherEventTypes)). You can then send an email from the event listener when an error event occurs.

---

<div class="post-metadata">

**Author:** ![bdot](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@bdot](https://forum.flowable.org/u/bdot)\
**Post date:** [June 14, 2018, 10:50am UTC](https://forum.flowable.org/t/error-notifications/2130/5 "2018-06-14T10:50:43Z")

</div>

Thanks @pstapleton This is exactly what we are looking for!
