Interface: CompareAndSetStateInput
Defined in: shared/lifecycle/types/port.ts:34
Arguments to EntityStatePort.compareAndSetState.
Properties
entityId
entityId: string;Defined in: shared/lifecycle/types/port.ts:35
expectedFrom
expectedFrom: string;Defined in: shared/lifecycle/types/port.ts:37
The state the engine read and expects to still be current.
expectedVersion?
optional expectedVersion?: number;Defined in: shared/lifecycle/types/port.ts:44
The optimistic-concurrency counter read alongside the state, when the port tracks one. Ports without a version column ignore this.
to
to: string;Defined in: shared/lifecycle/types/port.ts:39
The state to move to.