storedCommand

fun storedCommand(model: AggregateModel<*>, wire: CommandWire): Command<*>?

The command wire holds when it is model's context's own stored data, its body read leniently: a timer's command to an aggregate of its own context, whose body that context wrote at schedule time from its own command object, perhaps by an earlier release. It is read as the context reads its stored events, a property the command type no longer has dropped: nothing else could be meant by it, a stored schedule has no upgrade hook, and refusing it would lose the scheduled work. A body from outside the context is input, read by command; a timer's command to another context is sent there and read by its intake. Null when the model has no command type of the name.