# Execution listener / ExecutionListenerExecution deprecated

**URL:** <https://forum.flowable.org/t/execution-listener-executionlistenerexecution-deprecated/4899>\
**Category:** Flowable Engine\
**Created:** [November 19, 2019, 9:26am UTC](https://forum.flowable.org/t/execution-listener-executionlistenerexecution-deprecated/4899 "2019-11-19T09:26:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![btoussaint](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@btoussaint](https://forum.flowable.org/u/btoussaint)\
**Post date:** [November 19, 2019, 9:26am UTC](https://forum.flowable.org/t/execution-listener-executionlistenerexecution-deprecated/4899/1 "2019-11-19T09:26:54Z")

</div>

Hi everyone,

I am currently experimenting “Execution listener” by studying Flowable DOCS (v 6.4.2) / 8.5.13. Execution listener.

It seems to be that the documentation example is referring some Classes/Interface which are not more supported in v 6.4.2

public class ExampleExecutionListenerOne implements ExecutionListener {

```
/* NOT SUPPORTED ANYMORE ?
public void notify( ExecutionListenerExecution execution) throws Exception {
    execution.setVariable("variableSetInExecutionListener", "firstValue");
    execution.setVariable("eventReceived", execution.getEventName());
}
*/

@Override public void notify( DelegateExecution delegateExecution ) {
    delegateExecution.setVariable("variableSetInExecutionListener", "firstValue");
    delegateExecution.setVariable("eventReceived", delegateExecution.getEventName());s
}

```

}

Best regards

Bertrand

---

<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 20, 2019, 10:13am UTC](https://forum.flowable.org/t/execution-listener-executionlistenerexecution-deprecated/4899/2 "2019-11-20T10:13:21Z")

</div>

They are supported, see here: [https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine/src/main/java/org/flowable/engine/delegate/ExecutionListener.java](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine/src/main/java/org/flowable/engine/delegate/ExecutionListener.java)

Or do you mean the docs shows an older version (with the throws Exception)

---

<div class="post-metadata">

**Author:** ![btoussaint](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@btoussaint](https://forum.flowable.org/u/btoussaint)\
**Post date:** [November 21, 2019, 7:15pm UTC](https://forum.flowable.org/t/execution-listener-executionlistenerexecution-deprecated/4899/3 "2019-11-21T19:15:35Z")

</div>

Hi Joram,

I would like to say that the snippet in the documentation (chapter 8.5.13.) includes an interface/class ExecutionListenerExecution which seems to not exist anymore in version 6

**public void notify( ExecutionListenerExecution execution) throws Exception**

From my springboot project I was not able to import it… seems to be an implementation related to flowable 5 that not exists anymore in flowable 6

> <https://github.com/flowable/flowable-engine/blob/master/modules/flowable5-engine/src/main/java/org/activiti/engine/impl/pvm/delegate/ExecutionListenerExecution.java>

---

<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:** [December 4, 2019, 4:50pm UTC](https://forum.flowable.org/t/execution-listener-executionlistenerexecution-deprecated/4899/4 "2019-12-04T16:50:59Z")

</div>

Indeed, that’s correct. Updated here: [https://github.com/flowable/flowable-engine/commit/82d5cc98c9f74751c89c46e4f0c0f33a1e675109](https://github.com/flowable/flowable-engine/commit/82d5cc98c9f74751c89c46e4f0c0f33a1e675109), thanks!
