CMDCTest.Workflow.Fixtures (cmdc_test v0.3.0)

Copy Markdown View Source

cmdc_orchestrator Workflow Runtime 的 JSON-safe 测试 fixture。

这些 fixture 只描述公开 contract shape,不依赖 cmdc_orchestrator 编译期模块, 因此可在企业 Phoenix CI 中配合 path/Hex orchestrator 使用,也可离线测试 Gateway / Trace Viewer / Eval Gate 的事件形状。

Summary

Functions

生成 RunEvent 列表。

生成 Gateway SSE/WebSocket 事件快照。

生成 NodeRun 列表。

生成 Run map。

生成 Run Console / Trace Viewer 可消费的状态快照。

生成一份含 condition / human_task / fork / join 的 WorkflowSpec map。

Functions

events(opts \\ [])

@spec events(keyword()) :: [map()]

生成 RunEvent 列表。

gateway_event(opts \\ [])

@spec gateway_event(keyword()) :: map()

生成 Gateway SSE/WebSocket 事件快照。

node_runs(opts \\ [])

@spec node_runs(keyword()) :: [map()]

生成 NodeRun 列表。

run(opts \\ [])

@spec run(keyword()) :: map()

生成 Run map。

status_snapshot(opts \\ [])

@spec status_snapshot(keyword()) :: map()

生成 Run Console / Trace Viewer 可消费的状态快照。

workflow_spec(opts \\ [])

@spec workflow_spec(keyword()) :: map()

生成一份含 condition / human_task / fork / join 的 WorkflowSpec map。