API Reference
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
import { processBundle } from "@graphrefly/ts/orchestration";
Signature
function processBundle(
graph: Graph,
opts: ProcessBundleOptions<TCommand, TState, TEvent, TEffect>,
): ProcessBundle<TCommand, TState, TEvent, TEffect>
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
A bundle of graph-visible nodes for the recipe.
Example
import { processBundle } from "@graphrefly/ts/orchestration";
Source
packages/ts/src/orchestration/process.ts