Spectre.GAM.Attempt.Binding (Spectre v0.4.0)

Copy Markdown View Source

Pure identity binding between an Act and its single durable Attempt.

Temporal rules belong to the transition which starts or observes the Attempt. This module centralizes only the immutable identity fields shared by replay, execution adapters and recovery.

Summary

Functions

Returns the exact binding embedded in Evidence emitted for an Attempt.

Returns the first identity mismatch, or nil when the Attempt belongs to the Act.

Types

mismatch()

@type mismatch() :: {atom(), term(), term()}

Functions

evidence_bindings(act, attempt)

@spec evidence_bindings(Spectre.GAM.Act.t(), Spectre.GAM.Attempt.t()) :: map()

Returns the exact binding embedded in Evidence emitted for an Attempt.

mismatch(attempt, act)

@spec mismatch(Spectre.GAM.Attempt.t(), Spectre.GAM.Act.t()) :: mismatch() | nil

Returns the first identity mismatch, or nil when the Attempt belongs to the Act.