Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
AggregateLifecycle.apply(event); } @CommandHandler public void handle(CancelPaymentCommand command) { CancelPaymentEvent event = CancelPaymentEvent.builder() .orderId(command.getOrderId()) .paymentId(command.getPaymentId()) .paymentStatus("Payment Cancelled") .price(command.getPrice())