Runtime from named engine?


Is there an easy way to get a process engine runtime from a name via the java APIs?

My use case is given multiple engine configurations, I want to call across engines

I found an EngineUtil.lookupProcessEngine(Name), but this seems to be dependent on the REST API library. In addition, if I look at the implementation code, it uses classes from the REST API package. Ideally I am trying to depend on the core engine libraries only…Hence Im looking for the equivalent to the EngineUtil but without the REST dependency.



Hi Rob,

You can use the static methods in org.camunda.bpm.BpmPlatform, so for example BpmPlatform.getProcessEngineService().getProcessEngine("<name>"). This works for both shared and embedded engine.


1 Like