View Source Finitomata.State (Finitomata v0.14.3)
Carries the state of the FSM.
Link to this section Summary
Types
The map that holds last error which happened on transition (at given state and event).
The payload that has been passed to the FSM instance on startup
The internal representation of the FSM state
Link to this section Types
@type last_error() :: %{ state: Finitomata.Transition.state(), event: Finitomata.Transition.event(), error: any() } | nil
The map that holds last error which happened on transition (at given state and event).
@type payload() :: any()
The payload that has been passed to the FSM instance on startup
@type t() :: %Finitomata.State{ name: Finitomata.fsm_name(), lifecycle: :loaded | :created | :unknown, persistency: nil | module(), listener: nil | module(), current: Finitomata.Transition.state(), payload: payload(), timer: non_neg_integer(), history: [Finitomata.Transition.state()], last_error: last_error() }
The internal representation of the FSM state