I used https://mswiderski.blogspot.jp/2014/11/process-instance-migration-made-easy.html?showComment=1488418392351#c4460028054489187297 approach to migrate JBPM 6.3 process and after successful migrating the process Instance in some scenarios it is not working and throwing error even though the node after human task is same.
Details:
- JBPM Version : 6.3
- Design : Human task (Reserved) > exor split >
Human Task/OR Node
The error thrown is :
Caused by: java.lang.ClassCastException: org.jbpm.workflow.core.node.Split cannot be cast to org.jbpm.workflow.core.node.HumanTaskNode
at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.getHumanTaskNode(HumanTaskNodeInstance.java:32)
at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:85)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:385)
...
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:147)
...
StackOverflow Link : Error after JBPM 6.3 process Migration - Stack Overflow
This link can help you - Modified process and "ClassCastException: SubProcessNode cannot be cast to HumanTaskNode"