How to implement compensation transaction, with Event-Driven Orchestration (Kafka and Camunda BPMN)

Hello

Kindly advice how to implement the compensation transaction within the below BPMN diagram:

trip-booking-model.bpmn (6.9 KB)

Note that I’m implementing Event-Driven Orchestration architecture using Spring Boot, Kafka and Camunda BPMN.

Best Regards

There’s a code example showing how compensation works here. It’s a little more advanced than what you’re looking for but has everything you’ll need i think.