02-23-2017 05:12 AM
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.
02-24-2017 03:30 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.