StateDefinition
Describes one state of a Template’s state machine and the transitions that leave it.
- Add states and transitions
- StateBuilder for declaring a state
- ReadStateInstance for an Item’s state inside an execution
Properties
Section titled “Properties”description
Section titled “description”
readonlydescription:string|undefined
Description set with setDescription, or undefined.
isDefault
Section titled “isDefault”
readonlyisDefault:boolean
Whether new Items start in this state when none is given; the first state added is the default unless setDefault chose another.
isInitial
Section titled “isInitial”
readonlyisInitial:boolean
Whether an Item may be created directly in this state; the default state is always initial.
readonlykey:string
Key of the state, unique within its Template.
readonlyprn:string
PRN of the state, <templatePrn>/state/<key>.
transitions
Section titled “transitions”
readonlytransitions:Record<string,TransitionDefinition>
Transitions leaving this state, keyed by transition key.

