AshWorkflow.Verifiers.ValidateTransitionLog (AshWorkflow v0.6.0)

Copy Markdown View Source

Verifies that a configured transition_log resource has the schema AshWorkflow.Changes.RecordEvent and the state_at/2/history/1 code interface depend on.

Required attributes: from_state, to_state, transition_name, occurred_at, triggered_by, plus a belongs_to relationship back to the workflow resource. If belongs_to_actor is configured, the log resource must also have a matching relationship to the configured actor resource.

A no-op when no transition_log is configured.