WorkflowStem.Engines.FsmEngine (workflow_stem v0.2.0)

Copy Markdown View Source

ALF-backed engine for :fsm workflows.

Phase 2: single-process deterministic runtime where per-execution state is carried in-band through a shared static ALF pipeline (WorkflowStem.Pipelines.Fsm).

Summary

Types

runtime()

@type runtime() :: %{
  :execution_id => String.t(),
  :tenant_id => String.t(),
  :spec => map(),
  :current_state => atom() | String.t(),
  optional(:context) => map(),
  optional(:history) => list(),
  optional(:trace) => list(),
  optional(:blocked_reasons) => map(),
  optional(:breakpoint_hits) => list(),
  optional(:errors) => [map()],
  optional(:projection) => WorkflowStem.Projection.t()
}