Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
on(CompleteOrderEvent event,OrderEventsHandler nh) { this.orderId = event.getOrderId(); nh.onCompleteOrderEvent(event); } @EventSourcingHandler public void on(CancelOrderEvent event, OrderEventsHandler nh) { this.orderId = event.getOrderId(); nh.onCancelOrderEvent(event); } @EventSourcingHandler