Skip to content

TransitionDefinition

Describes a directed transition between two states of the same Template.

Executing the transition moves the Item from fromKey to toKey in one statement conditioned on the current state; an Item that has already left fromKey raises a state transition conflict.

State machines

readonly description: string | undefined

Description set with setDescription, or undefined.


readonly fromKey: string

Key of the state the transition leaves.


readonly fromStatePrn: string

PRN of the state the transition leaves.


readonly grants: readonly GrantDefinition[]

Roles allowed to execute the transition; a principal needs any one of them.


readonly input: InputDefinition

Contract for the transition payload, or null when it declares no payload members.


readonly key: string

Key of the transition, unique within its state.


readonly prn: string

PRN of the transition, <fromStatePrn>/transition/<key>.


readonly toKey: string

Key of the state the transition enters.


readonly toStatePrn: string

PRN of the state the transition enters.