AshWorkflow.Entities.TransitionLog (AshWorkflow v0.6.0)

Copy Markdown View Source

Configures an opt-in transition log for a workflow.

When present, AshWorkflow.Changes.RecordEvent appends one row per workflow event to resource, and the resource gains the state_at/2 and history/1 code interface functions plus the entered_current_state_at calculation.

The log resource itself is user-owned, not generated — see AshWorkflow.Verifiers.ValidateTransitionLog for the schema it must satisfy.

Summary

Functions

Returns the configured actor capture, or nil if none is configured.

Types

t()

@type t() :: %AshWorkflow.Entities.TransitionLog{
  __spark_metadata__: term(),
  belongs_to_actor: [AshWorkflow.Entities.BelongsToActor.t()],
  resource: module()
}

Functions

attribute_schema()

belongs_to_actor(transition_log)

@spec belongs_to_actor(t()) :: AshWorkflow.Entities.BelongsToActor.t() | nil

Returns the configured actor capture, or nil if none is configured.