How to handle the compensation event in bpmn?

In the compensation event, can the compensation handler continue its course after the compensation is thrown, or should it wait for the two compensation processes to take place?

  • In the figure below, after task 1, task 3 is executed and does not wait for the two compensation processes 1.1 and 2.2?
  • Or after the implementation of compensation 1, task 3 is implemented and the two compensation processes 1.1 and 2.2 are canceled?
  • Or the implementation of compensation 1, task 3 is not executed and the two compensation processes 1.1 and 2.2 are executed first and task 3 waits and after execution 1.1 and 2.2, task 3 is executed.

I don’t believe it works like that - a compensation is associated with one handler. What you’re trying to do is mix the compensation handling with another compensation going on?

No, I do not mix. I intend to notice parallel or consecutive execution of tasks. When compensator 1 is executed, can task 3 be performed before execution 1.1 and 2.1? And if we ran Task 3 before 1.1 and 2.1 and skipped these two; Will compensation 1.1 and 2.1 not be available?

image

In this image, after performing task 1, the middle compensator is executed. After that, which task, task 2 or task 3, have priority in implementation?
If Task 2 is run before Task 3, will the process end?

In your last example once the compensator is activated it will create 2 token flows. One will activate Task 2 and the other will activate Task 3. This means that in order to finish the process both flows need to reach an end event. So in your case the process will end when both Task 2 and Task 3 are completed, the order is not important.

Cheers,
Filip

Apparently misunderstood.
My goal in raising this issue is to understand the sequence of work. To better understand the scenarios that may be implemented, I ask more clearly:

  1. Should task 2 and then task 3 be performed first?
  2. Are Task 2 and Task 3 running simultaneously?
    3- Task 3 must be executed first and has priority over Task 2?