processEffectRunner()
Build a D156 graph-visible effect runner adapter over a ProcessBundle.
The runner consumes visible effect-request and outcome facts, then publishes ordinary ProcessCommand DATA facts back through process.command via a declared graph edge. Async handlers, timers, and process state ownership stay outside this helper.
Import
Section titled “Import”import { processEffectRunner } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function processEffectRunner( graph: Graph, process: ProcessBundle<unknown, unknown, unknown, TEffect>, opts: ProcessEffectRunnerOptions<TResult>,): ProcessEffectRunnerBundle<TEffect, TResult>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
process | ProcessBundle<unknown, unknown, unknown, TEffect> | process value used by the helper. |
opts | ProcessEffectRunnerOptions<TResult> | Options that configure the helper. |
Returns
Section titled “Returns”A ProcessEffectRunnerBundle<TEffect, TResult> value.
Example
Section titled “Example”import { processEffectRunner } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/process.ts