Order
Order aggregate.
State is isolated in OrderState so command handlers cannot mutate it accidentally.
AggregateRoot is an optional marker annotation.
Author
ahoo wang
See also
Functions
Link copied to clipboard
Applies a payment-service event after it has been adapted to PayOrder.
fun onCommand(command: CommandMessage<CreateOrder>, @Name(value = "createOrderSpec") specification: CreateOrderSpec, commandResultAccessor: CommandResultAccessor): Mono<OrderCreated>
Creates an order from its first command while the aggregate is uninitialized. The conventional onCommand name makes the command-handler annotation optional.
Link copied to clipboard
fun onError(createOrder: CreateOrder, throwable: Throwable, eventStream: DomainEventStream?): Mono<Void>