record

fun record(model: AggregateModel<*>, committed: CommandOutcome.Committed, expectedOnly: Boolean = false)

Records the state of committed, when some reader reads model's aggregate type: the pending view of its stream, when one was expected, else the state serialized now. With expectedOnly, a stream with no pending view records nothing, and its readers read the store: a batch member's CommandOutcome.Committed.state is the instance the members after it evolved further (me.ahoo.wow.kernel.Kernel.executeBatch), not its own.