derivedId

fun derivedId(execution: ExecutionId, ref: AggregateRef, commandType: Class<*>, occurrence: Int = 0): String

The id, and request id, of the occurrence-th command (from 0) to ref of commandType derived by execution: a name-based UUID of the execution, the target (its id, AggregateRef.UNASSIGNED for a creation that leaves it to admission), the command type and the occurrence (DerivedRequests.encoded), stable across every execution of the same commit by the same subscription, whatever order the handler derives its commands in.


fun derivedId(execution: ExecutionId, ref: AggregateRef, commandType: Class<*>, requestId: String): String

The id, and request id, of the command to ref of commandType derived by execution from a request whose business key is requestId (CommandRequest.requestId): a name-based UUID of the execution, the target, the command type and the key, whatever other commands the execution derives.