-
Notifications
You must be signed in to change notification settings - Fork 4
Workflow Engine
Alessio Rocchi edited this page Jan 27, 2026
·
1 revision
Multi-phase workflow orchestration system.
The workflow engine executes multi-phase workflows with:
- Phase-based execution
- Iterative refinement
- Result aggregation
- Event notifications
import { WorkflowRunner } from '@blackms/aistack';
const runner = new WorkflowRunner();
const report = await runner.run({
id: 'my-workflow',
name: 'My Workflow',
phases: ['phase1', 'phase2', 'phase3'],
maxIterations: 3
});
console.log('Workflow complete:', report);// Register phase executor
runner.registerPhase('inventory', async (context) => {
// Phase logic here
return {
phase: 'inventory',
success: true,
findings: [],
artifacts: {},
duration: 0
};
});runner.on('workflow:start', (config) => {
console.log('Workflow started:', config.id);
});
runner.on('phase:complete', (result) => {
console.log('Phase complete:', result.phase);
});
runner.on('finding', (finding) => {
console.log('Finding:', finding);
});
runner.on('workflow:complete', (report) => {
console.log('Workflow complete:', report);
});import { runDocSync } from '@blackms/aistack';
const report = await runDocSync('./docs', './src');Related:
Getting Started
Core Concepts
Agent Guides
- Overview
- Coder
- Researcher
- Tester
- Reviewer
- Adversarial
- Architect
- Coordinator
- Analyst
- DevOps
- Documentation
- Security Auditor
MCP Tools
- Overview
- Agent Tools
- Memory Tools
- Task Tools
- Session Tools
- System Tools
- GitHub Tools
- Review Loop Tools
- Identity Tools
Recipes
- Index
- Code Review
- Doc Sync
- Multi-Agent
- Adversarial Testing
- Full-Stack Feature
- Memory Patterns
- GitHub Integration
Advanced
- Plugin Development
- Custom Agent Types
- Workflow Engine
- Vector Search Setup
- Web Dashboard
- Programmatic API
- Resource Monitoring
Reference