GivenAggregate
An aggregate a processor reads, as ProcessorSpec.givenAggregate gave it: its model replays its history, one commit per event, to the state and version it is at. ProcessorSpec.whenEvent hands over its next commit, and the aggregate is then at it: the next one comes after it, and ProcessorSpec.whenRedelivered and ProcessorSpec.whenDeliveredLate hand it again. A fork of the specification advances a copy of its own, which ProcessorSpec.whenEvent still finds by the aggregate's ref.
A sourcing function that reads the commit of its event reads the commit as stateEvent gives it: committed at DEFAULT_START, of the command command-<version>, in the name of the operator ProcessorSpec.whenEvent names (none in the history).
Constructors
Link copied to clipboard