View Source AshStateMachine.Info (ash_state_machine v0.1.2)
Introspection helpers for AshStateMachine
Link to this section Summary
Functions
The default initial state
The default initial state
A list of states that have been deprecated. The list of states is derived from the transitions normally. Use this option to express that certain types should still be included even though no transitions go to/from that state anymore.
A list of states that have been deprecated. The list of states is derived from the transitions normally. Use this option to express that certain types should still be included even though no transitions go to/from that state anymore.
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
Link to this section Functions
@spec state_machine_all_states(Ash.Resource.record() | 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. The list of states is derived from the transitions normally. Use this option to express that certain types should still be included even though no transitions go to/from that state anymore.
@spec state_machine_deprecated_states!(dsl_or_extended :: module() | map()) :: [atom()] | no_return()
A list of states that have been deprecated. The list of states is derived from the transitions normally. Use this option to express that certain types should still be included even though no transitions go to/from that state anymore.
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.record() | map(), name :: atom()) :: [ AshStateMachine.Transition.t() ]