Hi ,
We are trying to migrate process instances from old workflow definition to new workflow definition. We have used 'SetProcessDefinitionVersionCmd ' Please find the attached code.
But , We are receiving below error while migrating the same.
"deployment '1' didn't put process definition 'TracWorkflow:1:4' in the cache" .
Note : In the new workflow definitin we removed one service task and one timer task.
Please let me know if anyone knows solution for the same.@Martin Grofcik#activiti
Thanks & Regards
Somi J.
Hi Somireddy Jonnala ,
My unit test ran successfully to create new deployment and migrate the in-flight process instance to it. Have a look at the attachment.
Before you migrate the instances, did you deploy the new process definition?
org.activiti.engine.repository.Deployment deployment = repositoryService
.createDeployment()
.addClasspathResource(
"org/activiti/test/migration/MigrationTestProcessv2.bpmn")
.deploy();
Hope this helps
Thong Huynh
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.