Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5295

Compensation boundary catch events can neither be attached nor be linked to subprocess.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.Final
    • jBPM 6.4.0.Final
    • Runtime Engine
    • None
    • NEW
    • NEW
    • Hide

      1. Draw a simple process flow with 2 subprocesses (S1, S2).
      2. Put a 'throw intermediate compensation' event after S1.
      3. Try to attach a 'catch boundary compensation' event to S1 - this will throw validation error mentioning "Compensation Boundary Event [] must be attached to a task or sub-process."
      4. After this error is fixed, try to link 'catch boundary compensation' event to S2 - this will throw validation error mentioning "An Activity [] associated with a Boundary Compensation Event must be a Task or a (non-Event) Sub-Process".

      Show
      1. Draw a simple process flow with 2 subprocesses (S1, S2). 2. Put a 'throw intermediate compensation' event after S1. 3. Try to attach a 'catch boundary compensation' event to S1 - this will throw validation error mentioning "Compensation Boundary Event [] must be attached to a task or sub-process." 4. After this error is fixed, try to link 'catch boundary compensation' event to S2 - this will throw validation error mentioning "An Activity [] associated with a Boundary Compensation Event must be a Task or a (non-Event) Sub-Process".

    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.

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            vivek.170581@yahoo.co.uk Vivek Srivastava (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: