Runtime from named engine?

Hi,

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.

regards

Rob

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.

Cheers,
Thorben

1 Like