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

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

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

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
Member II

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

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