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

Copy Markdown View Source

Optional host seam for invoking a capability with host context.

WorkflowStem.Adapters.CapabilityRunner remains the engine-level adapter. This behaviour exists for runner-host integrations that need to thread opaque metering, provenance, or dispatch context around capability execution.

Summary

Callbacks

invoke(tenant_id, term, map, map)

@callback invoke(WorkflowStem.Types.tenant_id(), term(), map(), map()) ::
  {:ok, term()} | {:wait, term()} | {:error, term()}