Rejected
class Rejected<C : Any> @InternalWowApi constructor(val commandId: String, val commandType: String, val ref: AggregateRef, val error: ErrorInfo, val causation: Causation, val executionId: ExecutionId, val operator: Operator? = null, val scope: Scope = Scope.NONE, val headers: Map<String, String> = emptyMap(), val version: Int? = null) : CommandReceipt<C>
The command was refused with error. version is the version of ref the rejection answered: the version its events reached when it was committed with events, else the one the decision saw; null when the command was refused before any decision, a creation's. A rejection is a business outcome: the runtime hands it to the saga instead of parking the aggregate, whether the command was rejected in the saga's own context or in another, whose receipt comes back, and whether the saga derived it or called it (SagaContext.call) and let the rejection through.
Constructors
Functions
Link copied to clipboard
fun copyWith(commandId: String = this.commandId, commandType: String = this.commandType, ref: AggregateRef = this.ref, error: ErrorInfo = this.error, causation: Causation = this.causation, executionId: ExecutionId = this.executionId, operator: Operator? = this.operator, scope: Scope = this.scope, headers: Map<String, String> = this.headers, version: Int? = this.version): CommandReceipt.Rejected<C>
This Rejected with the given fields replaced: Wow's own copy, left out of the ABI.