I have a Camunda Archetype Maven War Project which contains around 10 BPMN executable processes.
For any change in any process or for add new process or delete existing process, the entire project gets redeploy.
Because of one process change other processes have to face down time while deploying or validation.
Can we make JAR file for every BPMN process so only need to deploy particular without affecting other processes?
If we make JAR file how can we start process.
Is there any example of Camunda project which export as JAR and can add to a WAR project. Then we can call process of JAR by using Camunda REST start service?
yes. Jar will be get add but not as a dependency. jar will be consider as separate project. So after deployment if I need to add any new process for specific new requirement, I will make maven project and export as jar and will add to existing project lib folder. So existing running process will not get affected.
I tired by adding jar which contains BPMN process to lib of running project. and restarted server. But unable to call BPMN process of added new Jar.
Please let me know if you need more details. Basically on new BPMN process I don’t need to deploy entire project. I just want to make a jar containing BPMN process and add to lib of existing lib of project. and after restarting server that Jar(Project) get activated as a independent project.
Thank you,
Jignesh Pithva.
If you want to go with the Jar approach, you will need to write a lot of code to get it working.
Basically you need to make the application server aware something new (a jar) has been added and needs to be deployed and added to the classloaders etc. And that’s only the tip of the iceberg.
I strongly do not recommend that approach.
So why don’t you deploy each process as a separate WAR? You can handle them separately etc.
Yes I agree even I also tried by adding Jar as a dependency but unable to get worked. I am still trying to get over this.
We are thinking if there may many more processes in future so adding Jar dependency makes easy rather than handing separate Wars on server. As there is already 10 processes in War.
HI @run, No I did not found any suitable example or manage any related to requirement. if you found any approach please let me know. This approach still on Hold from our side. It would be good if we could manage by adding separate JARs.