AnsweredAssumed Answered

Activiti 5.22. Should I be able to access a different process engine from within an execution or event listener.

Question asked by pault on Nov 23, 2018
Latest reply on Nov 27, 2018 by pault

I am currently moving some code from 5.0 to 5.22 on its way to 6 then 7.  I use execution/event listeners and these sometimes need to interact with a process engine other than the one which is creating the events.

 

I can find the engine I want with ProceesEngines.getProcessEngine(), and i can also get what look like the correct services, e.g. repository service. However when I create a query from the service, e.g. to list deployments, I get the results for the engine that created the event, rather than the one I just looked up. The same piece of code outside of the listener works fine.   

 

This did work as i was expecting in 5.0, but not sure if I am doing something wrong or unsupported. 

Outcomes