Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
is captured in the PaymentAggregate: @CommandHandler public PaymentAggregate(CompletePaymentCommand command) { CompletePaymentEvent event = CompletePaymentEvent.builder() .orderId(command.getOrderId()) .paymentId(command.getPaymentId()) .paymentStatus(command.getPaymentStatus())