Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
.orderId(event.getOrderId()) .build(); commandGateway.send(completeOrderCommand); } } If there is no error in creating the Shipment information, it creates a CompleteOrderCommand which is captured in the OrderAggregate and handled there to create a CompleteOrderEvent that updates the order record