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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Initial | String | No | Name of the state to start in; the first state when empty. | |
| Maximum transitions | Number | No | 1000 | Safety limit; the step fails with STATE.LIMIT when more transitions than this are taken. |