Skip to content

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 ParameterDefault type
TState extends objectRecord<string, unknown>

Properties

PropertyModifierTypeDefined in
namereadonlystringpackages/workflow/src/types.ts:150
runreadonlyWorkflowNodeRun<TState>packages/workflow/src/types.ts:151