Loads and compiles workflow specs (maps) into an internal IR (data).
This module produces data-only IR and does not itself generate Elixir modules. The registry executes route-free IR through static profile pipelines and may compile routed IR into a cached per-workflow ALF module.
Summary
Functions
@spec compile_to_ir(WorkflowStem.Types.spec()) :: {:ok, WorkflowStem.Types.ir()} | {:error, term()}
@spec get_or_compile( WorkflowStem.Types.tenant_id(), WorkflowStem.Types.workflow_handle(), map() ) :: {:ok, WorkflowStem.Types.ir()} | {:error, term()}
@spec load_from_artifact( WorkflowStem.Types.tenant_id(), WorkflowStem.Types.workflow_handle(), map() ) :: {:ok, WorkflowStem.Types.spec()} | {:error, term()}
@spec validate_spec(WorkflowStem.Types.spec()) :: :ok | {:error, term()}