deployment '1' didn't put process definition 'TracWorkflow:1:4' in the cache’

cancel
Showing results for 
Search instead for 
Did you mean: 
madhu_infy
Member II

deployment '1' didn't put process definition 'TracWorkflow:1:4' in the cache’

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.

1 Reply
thuynh
Established Member II

Re: deployment '1' didn't put process definition 'TracWorkflow:1:4' in the cache’

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