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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2018 11:49 AM
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.
Labels:
- Labels:
-
Alfresco Process Services
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2018 10:25 AM
Hello maol _,
I also facing the same issue, i just remplaced event.getEngineServices() with Context.getProcessEngineConfiguration().
I hope that helps you.
