AshWorkflow.Calculations.EnteredCurrentStateAt (AshWorkflow v0.6.0)

Copy Markdown View Source

Ash calculation that returns the occurred_at of the most recent transition log row where from_state != to_state.

Unlike state_entered_at, this ignores repeating-timeout rows — a repeat writes a row with from_state == to_state to re-arm its own trigger, but it is not a state change. Only registered when a transition_log is configured; see AshWorkflow.Transformers.AddCalculations.

Summary

Functions

describe(opts)

Callback implementation for Ash.Resource.Calculation.describe/1.

has_calculate?()

has_expression?()

Callback implementation for Ash.Resource.Calculation.has_expression?/0.

init(opts)

Callback implementation for Ash.Resource.Calculation.init/1.

strict_loads?()

Callback implementation for Ash.Resource.Calculation.strict_loads?/0.