Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9120

Incorrect execution order on subprocess compensation

    Details

    • Type: Bug Report
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: 7.7.0, 7.8.0, 7.9.0
    • Fix Version/s: None
    • Component/s: engine
    • Labels:
      None

      Description

      Scenario:

      • Process as in attachment
      • Reach compensation end event

      Expected behavior

      • Do something first is executed before Do something second

      Current behavior

      • it is the other way around

      Details:

      • this has nothing to do with compensation behavior ordering the subscriptions incorrectly. This is fine.
      • In fact, the subprocess that contains Do something first is executed first, but the logic in org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext#performNext postpones the atomic operation PvmAtomicOperationActivityStartCreateScope for the subprocess start event such that org.camunda.bpm.engine.impl.bpmn.helper.CompensationUtil#throwCompensationEvent triggers the next compensation subscription before the postponed operation is executed.

      Forum post:

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            thorben.lindhauer Thorben Lindhauer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development