Skip to content

Can trigger compensation within active sub-processes #231

@sombrek

Description

@sombrek

Describe the Bug

A compensate throw event can trigger compensation of activites within active sub-process (on a parallel path).

Steps to Reproduce

  1. See this model: compensate-active-subprocess.bpmn.txt
  2. Add a pause point to "Compensate Task"
  3. Trigger the start event
  4. Wait until a token reaches the timer event
  5. Trigger the message event
  6. Note that a token waits on the "Compensate Sub" throw event
  7. Trigger the timer event
  8. Note that the compensation activity starts once the sub-process is finished
  9. Trigger the "Compensate Task"
  10. Note that the "Compensate Sub" throw event is exited.
Visual Demo

Image

Expected Behavior

Compensation should not be triggered for the sub-process, because it is still active. Therefore, a token should simply pass through the compensate throw event in this case.

Environment

  • Library version: 0.38.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogQueued in backlogbugSomething isn't workingspring cleaningCould be cleaned up one day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions