Skip to main content

Module node_context

Module node_context 

Source
Expand description

NodeContext + ExecutionControl — v04 核心类型。

NodeContext 是 Runtime Handle(运行时句柄),节点只借用,不拥有。 节点通过 NodeContext 读写 State、发射数据面事件、发出控制信号。

v0.4+: 泛型化 NodeContext<'a, S>,S: WorkflowState。 默认 S = State(HashMap)保持向后兼容。

Structs§

ExecutionControl
控制信号容器 — 节点写入,Executor 读取。
NodeContext
节点上下文 — Runtime Handle(运行时句柄)。
NodeMetadata
节点元数据 — 提供给 Executor 的额外信息。

Enums§

ExecutionSignal
控制信号 — 独立枚举,Barrier 挂起不是路由。
NextAction
节点执行后的下一步路由。