Bug 1036909

Summary: session-migration: CCE when a process contains a Catching Intermediate Conditional Event.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Marek Baluch <mbaluch>
Component: jBPM CoreAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Baluch <mbaluch>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, rrajasek, rzhang
Target Milestone: ER 7   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:10:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marek Baluch 2013-12-02 21:36:55 UTC
Description of problem:
When a process with a 'Catching Intermediate Conditional Event' is migrated to jBPM 6. then a CCE org.jbpm.workflow.core.node.ActionNode cannot be cast to org.jbpm.workflow.core.node.CompositeNode will be thrown on restore session.

Steps to Reproduce:
Use the BPMN2-IntermediateCatchEventCondition.bpmn2 process from the jBPM repo.
1) start an instance in jBPM5 (no Person object insertion)
2) attempt to restore the instance in jBPM6

Additional info:
For more information see http://git.app.eng.bos.redhat.com/jbossqe/brms.git/tree/test-jbpm-session-migration test catchEventConditionTest().

Comment 1 Kris Verlaenen 2013-12-17 02:09:25 UTC
To make sure the IDs of the nodes in jBPM6 are the same as in jBPM5, make sure to run the test with -Djbpm.v5.id.strategy=true, this should solve this CCE.

Other minor fix:
6.0.x: http://github.com/droolsjbpm/jbpm/commit/09599e8c3
master: http://github.com/droolsjbpm/jbpm/commit/5cb243524

Comment 2 Marek Baluch 2014-01-08 10:55:38 UTC
Verified on ER7.