processBundle()
Build a D136 ProcessBundle from graph-visible command facts and a reducer.
The bundle retains its runtime/projection nodes until release() is called.
Reducer and validation failures are emitted as DATA error/status/audit facts;
they do not mint protocol ERROR messages or own restore/hydration behavior.
Import
Section titled “Import”import { processBundle } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function processBundle( graph: Graph, opts: ProcessBundleOptions<TCommand, TState, TEvent, TEffect>,): ProcessBundle<TCommand, TState, TEvent, TEffect>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | ProcessBundleOptions<TCommand, TState, TEvent, TEffect> | Options that configure the helper. |
Returns
Section titled “Returns”A bundle of graph-visible nodes for the recipe.
Example
Section titled “Example”import { processBundle } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/process.ts