Hello, I’m using Camunda BPM as tomcat full distribution (CE) and I have deployed a simple process application (.war using maven archetype).
The project runs fine and works as expected until I bring up a new version of both process(bpmn) and war.
Suppose that I updated a user task form and updated the process tag version, in second version.
The war file has a version in the name, so it deploys to a different folder, no overwriting happens.
After deployment, when I go to Tasklist, to see the older running instances I see that contextPath is having newer version in it.
Is this the expected behavior? Is it by design or is it a well-known bug ?
Can this be controlled so that old running process instances continue to use the old forms ?
Hello,
Thanks for the quick answer.
Actually, I was talking about the Tasklist web app,
The result I posted was taken from the network result in browser dev tool.
I’m sorry for the confusion. I’m using the default distribution with cockpit, admin and tasklist web apps.
So, the problem is the behaviour of the task list, and task view.
(http://localhost:8090/camunda/app/tasklist/…)
Try to add below two properties to your new processes.xml file and also change the name attribute of the process-archive tag to a new deployment name different than the one used for the previous deployment
I see that contextPath is being updated and active instances are loading forms per their versions.
{“key”:“embedded:app:forms/test-me.html”,“contextPath”:"/testme2-1.2"}
{“key”:“embedded:app:forms/test-me.html”,“contextPath”:"/testme2-1.1"}
{“key”:“embedded:app:forms/test-me.html”,“contextPath”:"/testme2-1.0"}
Your settings should also work with
isResumePreviousVersions set to true
As you have a different deployment name for each version and resumePreviousBy is set to deployment-name Instead of the process definition.
When you set isResumePreviousVersions to true then you would be able to resume deployment for a previous version.
Assuming that you have updated forms and classes which you would like to apply them on the previous version 1.1, then you can open your previous project where the name attribute of the process-archive is testme2-1.1, update classes & forms then generate the war & deploy