Persistence adapter facade for workflow executions and checkpoints.
Reads the adapter module from :workflow_stem, :persistence_adapter
(a module implementing WorkflowStem.Adapters.PersistenceAdapter; the value
must be a module name or nil).
With no adapter configured, persistence is disabled:
save_execution/2andsave_checkpoint/3return{:ok, :skipped};get_execution/2returns{:error, :persistence_disabled};list_executions/2returns{:ok, []}— indistinguishable from a tenant with no executions, so checkenabled?/0when that matters.
Configure an adapter with:
config :workflow_stem, persistence_adapter: MyApp.WorkflowPersistence
Summary
Functions
Returns true when a configured adapter module implements
save_execution/2. Loads the adapter module if it is not loaded yet.
Functions
@spec adapter() :: module() | nil
@spec enabled?() :: boolean()
Returns true when a configured adapter module implements
save_execution/2. Loads the adapter module if it is not loaded yet.