Visual Workflow Engine
Complete guide to building and managing content lifecycles using the visual FSM engine in SveltyCMS.
On this page
The SveltyCMS Workflow Engine allows you to define complex, non-linear content lifecycles using a visual Finite State Machine (FSM) editor. This ensures strict governance and compliance across multi-stage editorial processes.
🏗️ Core Concepts
States
A State represents a stage in the content lifecycle (e.g., Draft, Legal Review, Live).
- Start State: The initial state for all new entries.
- Terminal States: States from which no further transitions are possible (e.g.,
Archived).
Transitions
Transitions define the valid paths between states.
- Triggers: Actions that initiate a move (e.g., “Submit for Review”).
- Guards: Conditional logic that must pass for a transition to occur (e.g., “Requires valid SEO title”).
- Actions: Automated side effects (e.g., “Send notification to Legal team”).
🎨 The Workflow Builder
Located at Config > Workflows, the builder provides a node-based interface for architecting your lifecycles.
Creating a Workflow
- Click New Workflow and assign it to a collection.
- Add States: Use the canvas to place nodes for each stage.
- Connect Nodes: Drag from one state to another to create a transition.
- Configure Details: Click a transition to define its label, color, and requirements.
Integration with Content Editor
Once active, the workflow replaces the standard “Publish” dropdown in the entry editor with a dynamic Action Hub matching the current state’s valid transitions.
đź”’ Governance & Security
Role-Based Transitions
Restrict who can trigger specific transitions.
- Example: Only users with the
Legalrole can transition content fromLegal ReviewtoReady for Publish.
Signed Approval Links
For external stakeholders without CMS access, the engine can generate HMAC-signed one-click approval links via the Automation System.
🤖 AI & Automation
The Workflow Engine integrates deeply with:
- Automation System: Automatically trigger workflows based on events.
- AI Agent: Use the agent to “Analyze and advance” content based on quality checks.
📚 Related Documentation
- Automation System: For triggering transitions via events.
- Content System Architecture: For understanding node structures.
- Access Management: For defining role permissions.