cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti 6 : How to get engine services in an ActivitiEventListener ?

maol
Champ on-the-rise
Champ on-the-rise

Hello,

How can I get access to engine services in the onEvent(ActivitiEvent event) method of an ActivitiEventListener ?

In version 5, I could just do :

event.getEngineServices()

In version 6, this method is not available anymore.

Yet the documentation still says:

If possible, use the EngineServices exposed by the event to interact in a safe way with the engine.

1 REPLY 1

fdakhlaoui
Champ in-the-making
Champ in-the-making

Hello maol _,‌
I also facing the same issue, i just remplaced event.getEngineServices() with Context.getProcessEngineConfiguration().
I hope that helps you.