Details
-
Bug
-
Resolution: Done
-
Major
-
jBPM 6.4.0.Final
-
None
-
NEW
-
NEW
-
Description
Compensation catch events can neither be attached nor be linked to subprocess (the error thrown mentions that such event can be attached/linked to subprocess).
This is happening because code corresponding to subprocess is missing in org.jbpm.bpmn2.xml.ProcessHandler class.
1. https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/ProcessHandler.java#L676 - 'attachedToNode instanceof SubProcessNode' should be added to if condition
2. https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/ProcessHandler.java#L687 - 'target instanceof SubProcessNode' should be added to if condition
3. org.jbpm.workflow.core.node.SubProcessNode to be imported
Error does not reproduce upon making above changes.