Skip to main content

Crate pureflow_workflow

Crate pureflow_workflow 

Source
Expand description

External workflow definitions and validation entrypoints.

§Fragment: workflow-structural-boundary

This crate owns the static workflow graph shape. It validates structural facts that must be true before any runtime can reason about execution: nodes are uniquely named, ports are uniquely named within a node, and edges connect declared output ports to declared input ports. Runtime concerns such as scheduling policy, cycles, payload compatibility, cancellation, and backpressure are intentionally left to later layers.

§Fragment: workflow-validation-scope

The validation rules stop at structural honesty on purpose. A graph can be structurally valid and still semantically wrong for a later runtime or data model. Keeping that line clear prevents the workflow crate from accumulating scheduling, typing, or capability policy that belongs elsewhere.

§Fragment: workflow-deterministic-errors

Validation uses ordered maps and sets so duplicate detection and missing-edge errors are reported deterministically. The graphs are small enough that this tradeoff favors stable diagnostics and test output over marginal hash-table speed.

Structs§

EdgeDefinition
Directed connection from one output port to one input port.
EdgeEndpoint
Static endpoint for one side of a workflow edge.
NodeDefinition
Static node declaration and its input/output port topology.
WorkflowDefinition
Parsed workflow definition independent of runtime execution.
WorkflowGraph
Validated graph-level workflow structure.

Enums§

EdgeCapacity
Capacity policy for a workflow edge.
EdgeEndpointRole
Which side of an edge failed validation.
PortDirection
Direction of a port in a node’s static topology.
WorkflowValidationError
Error returned when a workflow graph is structurally invalid.