Below is the screenshot camunda bpmn docs ver 7.4 Cancel and Compensation Events | docs.camunda.org
My understanding is that if I have two tasks executing in parallel and one of the task has a compensation trigger event attached to it for the other task then task has to be completed before we can trigger a compensation on that task.
E.g workflow

In the example above , how will i make sure task b is completed before the compensation throw event is executed in task a