API Reference ash_state_machine v0.1.0

modules

Modules

Dsl documentation for AshStateMachine

Changes for working with AshStateMachine resources.

Transitions the state to a new state, validating the transition.

Returns a mermaid flow chart of a given state machine resource.

Used when an initial state is set that is not a valid initial state

Used when a state change occurs in an action with no matching transition

Introspection helpers for AshStateMachine

Adds or enforces details about the state attribute

Ensures that state is always selected on queries.

The configuration for an transition.

Verifies the default initial state is in the list of initial states.

Verifies that each transition corresponds to an update action

mix-tasks

Mix Tasks

Generates a Mermaid Flow Chart for each Ash.Resource with the AshStateMachine extension alongside the resource.