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

Compensation handlers are triggered by Event Subprocess in the wrong order


    • Type: Bug Report
    • Status: Open
    • Priority: L2 - Critical
    • Resolution: Unresolved
    • Affects Version/s: 7.9.0
    • Fix Version/s: None
    • Component/s: engine
    • Labels:
    • Environment:
      BPMN engine deployed in Docker container (camunda-bpm-platform:latest), Camunda Modeler 1.16.2, OS: Windows 10.
    • Title Keywords:
      event subprocess compensation external task


      Cancellation Tasks are triggered in order that doesn't match the one specified in Event Subprocess. Intermediate Throwing Compensation Events are lined up in the following order: for MyTask3 -> for MyTask2 -> for MyTask. When error is triggered by External Task Handler for MyTask3, compensation is triggered in the following order: for MyTask -> for MyTask2, which is clearly wrong.
      Steps to reproduce

      1. Launch BPMN engine in a Docker container using the following command:
        docker run -d --name camunda2 -p 8081:8080 camunda/camunda-bpm-platform:latest
      2. Deploy the diagram using Camunda Modeler.
      3. Build and launch an attached issue-reproducer Maven project (src/main/resources/application.yml contains Camunda's REST API URI prefix, which must be changed if necessary. Main class is com.example.camunda.EntryPointApplication).
      4. Trigger a process execution.
      5. Observe the output similar to the following:
        22:37:38.000 INFO  [ionManager] CompensatorOrderTaskHandler    Compensating Topic: CancelMyTaskTopic
        22:37:38.019 INFO  [ionManager] CompensatorOrderTaskHandler    Compensating Topic: CancelMyTask2Topic

      Issue is clearly intermittent, sometimes I was able to reproduce it after running a fresh container and redeploying the diagram couple of times. /camunda/logs/localhost.2018-09-23.log with default logger settings didn't contain any records regarding process execution. Please let me know if you need any additional info, such as DB dump.

      1. testprocess3.bpmn
        14 kB
        Alexander Kiselyov
      1. diagram screenshot.png
        104 kB


        There are no comments yet on this issue.


          • Assignee:
            akiselyov Alexander Kiselyov
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: