Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
handle(OrderCreateEvent event) { //CreateOrderCommand triggered the OrderCreateEvent //Now we can create the next transaction step which is payment COMMAND String paymentId = UUID.randomUUID().toString(); //Associate the payment ID SagaLifecycle.associateWith("paymentId", paymentId); //Create a