Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/workflow / / WorkflowNode
Interface: WorkflowNode<TState>
Defined in: packages/workflow/src/types.ts:149
Pure node contract. The runtime invokes run(state, ctx) exactly once per scheduled task; the return value is converted into channel writes by the engine.
Returning a single Dispatch or an array of dispatches schedules new tasks instead of writing to channels.
Stable
Type Parameters
| Type Parameter | Default type |
|---|---|
TState extends object | Record<string, unknown> |
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
name | readonly | string | packages/workflow/src/types.ts:150 |
run | readonly | WorkflowNodeRun<TState> | packages/workflow/src/types.ts:151 |