Process file outside of WAR-Application

Hi everyone,

my current scenario is the following:
We create a war-package in Eclipse that contains the .bpmn-files as well as the Java-files for the Delegates. After that, we place the war-file inside the webapps-folder of our Tomcat, so that the processes and the code get deployed there.

The problem with this approach is, that when we deploy the whole Tomcat-server with our preconfigured processes and Java-Delegates at a customer, they are not able to update the existing processes or even create new ones anymore. The war-package needs to be recreated and deployed again.

So the question is:
Is it possible, that we place all our Java-Delegates in a war-package and deploy it as an application, and place the .bpmn-files outside of the war on the Tomcat? Can these processes still use the classes of our war-application?

Thanks in advance.

Regards
Michael

yes it is possible. You can deploy your bpmn file outside from war file by using camunda rest api. Have a look at this:

https://docs.camunda.org/manual/latest/reference/rest/deployment/post-deployment/

@aravindhrs Do you know where I can specify which Java-classes of which WAR-Application should be used for the deployed process? Because normally the processes can only use the classes that are placed in the same application. Do you have an example for this?

@Niall Do you have other advices on this topic?

Regards
Michael

Hi @MichiDahm,

you can register a new deployment (containing only BPMN files) to an existing process application with this method: https://docs.camunda.org/javadoc/camunda-bpm-platform/7.11/org/camunda/bpm/engine/ManagementService.html#registerProcessApplication-java.lang.String-org.camunda.bpm.application.ProcessApplicationReference-.

It’s only available as java service. But a custom REST endpoint to upload BPMN files can deploy them and register them to your process applications.

Hope this helps, Ingo