Expand description
Workflow definition and builder.
A WorkflowDef is an immutable, serializable description of a workflow —
a named sequence of steps. Use the Workflow builder to create one.
§Examples
use ironflow_engine::config::{ShellConfig, AgentStepConfig};
use ironflow_engine::workflow::Workflow;
let workflow = Workflow::new("deploy")
.shell("build", ShellConfig::new("cargo build --release"))
.shell("test", ShellConfig::new("cargo test"))
.agent("review", AgentStepConfig::new("Review the diff"))
.build()
.expect("valid workflow");
assert_eq!(workflow.name, "deploy");
assert_eq!(workflow.steps.len(), 3);Structs§
- StepDef
- A single step within a workflow definition.
- Workflow
- Builder for creating a
WorkflowDef. - Workflow
Def - An immutable workflow definition: a named sequence of steps.