SquidMesh.Workflow.Info (squid_mesh v0.1.0-alpha.7)

Copy Markdown View Source

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

fetch_spec(workflow)

@spec fetch_spec(module()) ::
  {:ok, SquidMesh.Workflow.Spec.t()}
  | {:error, SquidMesh.Workflow.Definition.load_error()}

Fetches the normalized workflow spec.

payload(workflow)

Returns the merged workflow payload contract.

retries(workflow)

Returns normalized retry policies.

spec(workflow)

@spec spec(module()) :: SquidMesh.Workflow.Spec.t()

Returns the normalized, serializable workflow spec.

steps(workflow)

@spec steps(module()) :: [SquidMesh.Workflow.StepSpec.t()]

Returns Spark step entities with runtime-resolved native step metadata.

transitions(workflow)

@spec transitions(module()) :: [SquidMesh.Workflow.Definition.transition()]

Returns normalized workflow transitions.

triggers(workflow)

Returns normalized workflow triggers.