View Source EcspanseStateMachine.Components.StateMachine (ECSpanse State Machine v0.3.2)
The state machine component tracks the running status and current state.
Fields
- initial_state: the state the machine should be in at start
- current_state: the state the machine is in now
- states: keyword lists of states [:name, exits[:exit_state1, :exit_state2...], :timeout, :default_exit]
- auto_start: if true, the machine will be automatically started
Summary
Types
state names can be an atom or a string
Functions
Retrieves the keyword list with the provided name
Callback implementation for Ecspanse.Component.validate/1
.
Types
state names can be an atom or a string
Functions
@spec get_state_spec(any(), state_name()) :: keyword() | {:error, String.t()}
Retrieves the keyword list with the provided name
Callback implementation for Ecspanse.Component.validate/1
.