Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
commandGateway.send(command); } } //Initiate the Cancel Order Command private void cancelOrderCommand(String orderId) { CancelOrderCommand command = CancelOrderCommand.builder() .orderId(orderId).build(); commandGateway.send(command); } //Cancel Payment Command private void