Workflow Engine Architecture
How Bootspring orchestrates multi-phase workflows.
Overview#
The workflow engine manages complex, multi-phase processes that coordinate agents, track progress, and handle failures.
Workflow Architecture#
┌─────────────────────────────────────────────────────────────────────┐
│ WORKFLOW ENGINE │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ Workflow Definitions │ │
│ │ feature-dev | security-audit | database-migration | ... │ │
│ └──────────────────────────┬──────────────────────────────────┘ │
│ │ │
│ ┌──────────────────────────▼──────────────────────────────────┐ │
│ │ Orchestrator │ │
│ │ │ │
│ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │
│ │ │ Phase │ │ Agent │ │ Signal │ │ Rollback │ │ │
│ │ │ Manager │ │Coordinator│ │ Checker │ │ Handler │ │ │
│ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │ │
│ │ │ │
│ └──────────────────────────────────────────────────────────────┘ │
│ │ │
│ ┌──────────────────────────▼──────────────────────────────────┐ │
│ │ Execution State │ │
│ │ Persistence | Progress Tracking | History │ │
│ └──────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────┘
Workflow Definition#
Definition Structure#
Loading code block...
Example Definition#
Loading code block...
Orchestrator#
Orchestrator Implementation#
Loading code block...
Phase Management#
Phase Manager#
Loading code block...
Agent Coordination#
Coordinator Implementation#
Loading code block...
Completion Signals#
Signal Checker#
Loading code block...
Rollback Handling#
Rollback Manager#
Loading code block...
State Persistence#
State Manager#
Loading code block...
Parallel Execution#
Parallel Phases#
Loading code block...