Module flow

Module flow 

Source
Expand description

Flow definition types for YAML deserialization.

This module provides strongly-typed structures for parsing YAML flow definitions:

§Example YAML

name: order_processing
version: "1.0"
description: Process incoming orders

triggers:
  - id: webhook_in
    type: webhook
    params:
      port: 8080
      path: /orders

nodes:
  fraud_check:
    type: std::switch
    config:
      condition:
        type: greater_than
        field: risk_score
        value: 0.8

  high_risk:
    type: std::log
    config:
      message: "High risk order detected"

edges:
  - from: webhook_in
    to: fraud_check
  - from: fraud_check.true
    to: high_risk

settings:
  max_concurrent_executions: 100
  execution_timeout_ms: 60000

Structs§

EdgeDefinition
An edge definition connecting nodes in a flow.
FlowDefinition
A complete flow definition from YAML.
FlowSettings
Runtime settings for a flow.
NodeDefinition
A node definition from YAML.
TriggerDefinition
A trigger definition from YAML.
ValidationError
A validation error.

Type Aliases§

ValidationResult
Result of flow validation.