Skip to content

StateDefinition

Describes one state of a Template’s state machine and the transitions that leave it.

readonly description: string | undefined

Description set with setDescription, or undefined.


readonly isDefault: boolean

Whether new Items start in this state when none is given; the first state added is the default unless setDefault chose another.


readonly isInitial: boolean

Whether an Item may be created directly in this state; the default state is always initial.


readonly key: string

Key of the state, unique within its Template.


readonly prn: string

PRN of the state, <templatePrn>/state/<key>.


readonly transitions: Record<string, TransitionDefinition>

Transitions leaving this state, keyed by transition key.