# Adding engine-wide event listener to task app

**URL:** <https://forum.flowable.org/t/adding-engine-wide-event-listener-to-task-app/2980>\
**Category:** Flowable Application\
**Created:** [December 3, 2018, 8:09am UTC](https://forum.flowable.org/t/adding-engine-wide-event-listener-to-task-app/2980 "2018-12-03T08:09:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lossril](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lossril](https://forum.flowable.org/u/lossril)\
**Post date:** [December 3, 2018, 8:09am UTC](https://forum.flowable.org/t/adding-engine-wide-event-listener-to-task-app/2980/1 "2018-12-03T08:09:27Z")

</div>

Hello,

I’m trying to add a custom event listener to flowable-task app and I cannot find any hints on how to do it in docs.  
Simply adding a jar to the lib folder obviously does not work, flowable-ui-app.properties file where I configure engine stuff like database connection doesn’t have any hints on where should I mention the event listener.

Does anyone have any idea on how it is done? I recall for Activiti 5 I’ve managed to do it by adding some custom configuration classes to a jar with the event listener, does Flowable have any way to do it?

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [December 3, 2018, 9:05pm UTC](https://forum.flowable.org/t/adding-engine-wide-event-listener-to-task-app/2980/2 "2018-12-03T21:05:04Z")

</div>

Hey @lossril,

[Custom Bean deployment for Task/Rest App](https://forum.flowable.org/t/custom-bean-deployment-for-task-rest-app/2813/2?u=filiphr) is similar to what you are trying to do. You need to register the event listener through the `ProcessEngineConfiguration` and you can do that by making your class an auto configuration.

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![lossril](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@lossril](https://forum.flowable.org/u/lossril)\
**Post date:** [December 4, 2018, 2:01pm UTC](https://forum.flowable.org/t/adding-engine-wide-event-listener-to-task-app/2980/3 "2018-12-04T14:01:25Z")

</div>

Thanks a lot! Worked fine for me ( :
