View Source AshStateMachine (ash_state_machine v0.2.0)
Functions for working with AshStateMachine.
dsl-documentation
DSL Documentation
index
Index
- state_machine
- transitions
- transition
- transitions
docs
Docs
state_machine
state_machine
- transitions
- transition
:deprecated_states
(list ofatom/0
) - 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 default value is[]
.:state_attribute
(atom/0
) - The attribute to store the state in. The default value is:state
.:initial_states
(list ofatom/0
) - Required. The allowed starting states of this state machine.:default_initial_state
(atom/0
) - The default initial state
transitions
transitions
transition
:action
(atom/0
) - The corresponding action that is invoked for the transition. Use:*
to allow any update action to perform this transition.:from
- Required. The states in which this action may be called. If not specified, then any state is accepted. Use:*
to refer to all states.:to
- Required. The states that this action may move to. If not specified, then any state is accepted. Use:*
to refer to all states.
Link to this section Summary
Functions
A utility to transition the state of a changeset, honoring the rules of the resource.
Link to this section Functions
A utility to transition the state of a changeset, honoring the rules of the resource.