Skip to main content

State machine

Move between named states: each state runs its steps, then the first transition whose condition holds takes the agent to the next state, until a final state.and moves to the next state; the step ends in a final state. Fails with STATE.NO_TRANSITION when a state that is not final has no true transition.

Command in the Core toolkit · id core/state_machine · 2 inputs, no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
InitialStringNoName of the state to start in; the first state when empty.
Maximum transitionsNumberNo1000Safety limit; the step fails with STATE.LIMIT when more transitions than this are taken.