How can I use java api to create a process engine and set it to the process engines


Hello everyone.
I already readed the document of Multiple engines with a distributed Database but there just have a example that via yml config file.

I want to know how can i create multiple engines via java api.
Thanks you all.

Please give me more detilas of how camunda supporte the multi tannacy of database isolation

Hi @himly,

The docs you found is about Camunda Optimize and I guess that is not what you are using.

To create a process engine in java, you can follow this example:

To create multiple engines, run this code multiple times. You should give the engines different names in that case.