Read helpers for compiled Squid Mesh workflow Spark metadata.
The runtime still exposes workflow_definition/0 for durable execution, while
this module gives tests, tooling, and planner adapters direct access to the
normalized workflow specification produced by the workflow DSL.
Summary
Functions
Fetches the normalized workflow spec.
Returns the merged workflow payload contract.
Returns normalized retry policies.
Returns the normalized, serializable workflow spec.
Returns Spark step entities with runtime-resolved native step metadata.
Returns normalized workflow transitions.
Returns normalized workflow triggers.
Functions
@spec fetch_spec(module()) :: {:ok, SquidMesh.Workflow.Spec.t()} | {:error, SquidMesh.Workflow.Definition.load_error()}
Fetches the normalized workflow spec.
@spec payload(module()) :: [SquidMesh.Workflow.Definition.payload_field()]
Returns the merged workflow payload contract.
@spec retries(module()) :: [SquidMesh.Workflow.Definition.retry()]
Returns normalized retry policies.
@spec spec(module()) :: SquidMesh.Workflow.Spec.t()
Returns the normalized, serializable workflow spec.
@spec steps(module()) :: [SquidMesh.Workflow.StepSpec.t()]
Returns Spark step entities with runtime-resolved native step metadata.
@spec transitions(module()) :: [SquidMesh.Workflow.Definition.transition()]
Returns normalized workflow transitions.
@spec triggers(module()) :: [SquidMesh.Workflow.Definition.trigger()]
Returns normalized workflow triggers.