Multiple execution listeners on same event

Hello dear camunda people,

I have two execution listeners defined on a subprocess. An expression and a script. I wonder if they are executed in the order they are defined, I could not find something about order of execution in the documentation. Is there an order when multiple execution listeners listen to the same event?

Thanks in advance

1 Like

@haiko it won’t be a problem in order of execution. It will execute it in order we define.

You mean in order they are defined in the BPMN file?

yeah, you can see the TaskListeners in which order configured in the generated bpmn xml file. According to that if you wish to change the order you can re-arrange the order of TaskListeners.

@aravindhrs can i use two different classes for one task listener one after the other ,

suppose java1 and java 2 for the listener “create” ?

@c_j yes, you can