WorkflowStem.Adapters.ProcessController behaviour (workflow_stem v0.3.0)

Copy Markdown View Source

Host adapter for active subprocess control.

Hosts own the actual process model. The shared runner only requires an adapter seam so later CLI-dispatch implementations can thread host context, provenance, and budget state through process startup and interruption.

Summary

Callbacks

clear_active(execution_id)

@callback clear_active(WorkflowStem.Types.execution_id()) :: :ok | {:error, term()}

halt_active(execution_id, term, map)

@callback halt_active(WorkflowStem.Types.execution_id(), term(), map()) ::
  :ok | {:error, term()}

register_active(execution_id, term, map)

@callback register_active(WorkflowStem.Types.execution_id(), term(), map()) ::
  :ok | {:error, term()}