Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
SagaLifecycle.associateWith("shipmentId", shipmentId); //Trigger the next flow which is the Shipping Command CompleteShipCommand command = CompleteShipCommand.builder() .orderId(event.getOrderId()) .shipmentId(shipmentId) .paymentId(event.getPaymentId()) .userId(event.getUserId()) .build();