AT:
- given:
- I have the attached process deployed transaction-mi.png
- Multi Instance transaction cardinality is 3 (or I have a collection with three elements)
- I have started a process instance
- I have the attached process deployed transaction-mi.png
- when:
- the first two multi-instance loops/transactions are completed successfully
- the last loop/transaction has a failure and triggers a cancellation
- then:
- Only the last multi-instance gets compensated
- expected:
- all three multi-instances get compensated
Hint:
Here is a testcase:
https://github.com/camunda/camunda-bpm-platform/commit/32be758e4ea4fe64de75b1145cd4ce5b4f13acc2
Also test that all transactions/loops after the cancellation are canceled and not executed anymore.