View Source AshStateMachine.Info (ash_state_machine v0.2.7)
Introspection helpers for AshStateMachine
Summary
Functions
The default initial state
The default initial state
A list of states that have been deprecated but are still valid. These will still be in the possible list of states, but :*
will not include them.
A list of states that have been deprecated but are still valid. These will still be in the possible list of states, but :*
will not include them.
A list of states that may be used by transitions to/from :*
. See the docs on wildcards for more.
A list of states that may be used by transitions to/from :*
. See the docs on wildcards for more.
The allowed starting states of this state machine.
The allowed starting states of this state machine.
state_machine DSL options
The attribute to store the state in.
The attribute to store the state in.
state_machine.transitions DSL entities
Functions
@spec state_machine_all_states(Ash.Resource.t() | map()) :: [atom()]
@spec state_machine_default_initial_state(dsl_or_extended :: module() | map()) :: {:ok, atom()} | :error
The default initial state
@spec state_machine_default_initial_state!(dsl_or_extended :: module() | map()) :: atom() | no_return()
The default initial state
@spec state_machine_deprecated_states(dsl_or_extended :: module() | map()) :: {:ok, [atom()]} | :error
A list of states that have been deprecated but are still valid. These will still be in the possible list of states, but :*
will not include them.
@spec state_machine_deprecated_states!(dsl_or_extended :: module() | map()) :: [atom()] | no_return()
A list of states that have been deprecated but are still valid. These will still be in the possible list of states, but :*
will not include them.
A list of states that may be used by transitions to/from :*
. See the docs on wildcards for more.
A list of states that may be used by transitions to/from :*
. See the docs on wildcards for more.
The allowed starting states of this state machine.
The allowed starting states of this state machine.
state_machine DSL options
Returns a map containing the and any configured or default values.
The attribute to store the state in.
The attribute to store the state in.
state_machine.transitions DSL entities
@spec state_machine_transitions(Ash.Resource.t() | map(), name :: atom()) :: [ AshStateMachine.Transition.t() ]