Camunda.cfg.xml


#1

Hello,

I am trying to have a reference (in a Java application) on a started Camunda engine (Tomcat/Windows 10).
The code : ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
looks at an existing camunda.cfg.xml and returns a null pointer.
How can I set a camunda.cfg.xml file (it looks like the bpm-platform.xml existing file)?
Is there another way?

Thank’s for your help


#2

Hello @WILLYGOLD;

Please take a look at the documentation: https://docs.camunda.org/manual/latest/user-guide/process-engine/process-engine-bootstrapping/#configure-process-engine-using-camunda-cfg-xml

Best, McAlm


#3

Thank’s. In fact I am trying to get a reference (in java) to a shared ProcessEngine .
For example, it’s easy to start a process in Java via REST, but how can I do that with a simple POJO?
Best regards