Loads and compiles workflow specs (maps) into an internal IR (data).
This does not generate Elixir modules. For UI-authored workflows loaded from disk, the stem interprets the IR using static profile pipelines.
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()}