Accessing Process Engine running on different port

Hi All,
I am creating a custom REST API. I need to access the process engine to get the task service, so that I can use its methods.
I can do this using In-Built Camunda REST API’s. But is there any way of getting the process engine services, without writing the class in the task or execution listeners.

I used the below statement to get the process engine in the Spring app and it is returning null for me.
ProcessEngine processEngine=ProcessEngines.getDefaultProcessEngine();

Thanks for your response in advance.

Hi @Ramanathan_Saravanan,

Here are a couple of things to check:

  1. Make sure you have a default process engine
  2. Make sure you that the Camunda classes used for building the process engine and used for accessing the engine are provided by the same classloader. This may for example not be the case, when you have the camunda-engine library multiple times on the classpath.

Cheers,
Thorben

1 Like