decideExisting

abstract suspend fun decideExisting(currentState: STATE, command: COMMAND): EventDecision<EVENT>(source)

Subsequent decisions have a preceding STATE and might result in no additional EVENTs

Return

An accepted event batch, an accepted no-change result, or a domain rejection.

Parameters

currentState

The current state of the aggregate.

command

The command to process.

Throws

only for unexpected decision failures.