Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
cancelPaymentCommand(CompleteShipEvent event) { CancelPaymentCommand cancelPaymentCommand = CancelPaymentCommand.builder() .paymentId(event.getPaymentId()) .orderId(event.getOrderId()) .build(); commandGateway.send(cancelPaymentCommand); } @SagaEventHandler(associationProperty = "shipmentId")