Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
handle(CancelOrderCommand cancelOrderCommand) { //Publish the Order Cancel Event CancelOrderEvent event = CancelOrderEvent.builder() .orderId(cancelOrderCommand.getOrderId()) .orderStatus("Cancelled") .build(); AggregateLifecycle.apply(event); } @EventSourcingHandler public void