Understanding Flow States
Workflows in Activepieces have two key state dimensions:Version State
Draft
Locked
Flow Status
Publishing Your First Flow
Complete Your Workflow
Test Your Flow
- All steps execute successfully
- Data flows correctly between steps
- Output matches expectations
Save Changes
Click Publish
Enable the Flow
The Publishing Widget
When you have unpublished changes, you’ll see a widget at the top of the canvas:- Publish
- Discard Changes
Flow Status Toggle
The status toggle controls whether a flow is actively running:Enabled
Disabled
Testing Strategies
Test Individual Steps
You can test steps one at a time:Configure Trigger
Test Trigger
Add First Action
Test Action
Repeat
Test Complete Flow
Testing Environments
- Testing Environment
- Production Environment
- Triggered manually via “Test Flow” button
- Uses sample data
- Doesn’t affect production data
- Logged separately from production runs
Version Management
Every time you publish, a new locked version is created:Lock Piece Versions
When publishing, piece versions are locked:Publishing Workflow
Apply Operation
Enabling and Disabling Flows
Flow Status API
Operation Status
User Toggles Status
Status Changes to ENABLING/DISABLING
operationStatus shows the operation in progress.System Updates Triggers
Status Changes to NONE
Pre-Flight Checks
Before publishing, ensure:All Steps Are Valid
All Steps Are Valid
- Required fields filled
- Valid connections selected
- Proper data mappings
Trigger Is Configured
Trigger Is Configured
- Fully configured
- Have required authentication
- Pass validation checks
Test Run Succeeds
Test Run Succeeds
- Run with sample data
- Check all step outputs
- Verify final result
Connections Are Active
Connections Are Active
- Are properly authenticated
- Have necessary permissions
- Are not expired
Rate Limits Considered
Rate Limits Considered
- Check rate limits
- Consider batch sizes
- Plan for peak usage
Rolling Back Changes
If you published changes but need to revert:Method 1: Discard Draft Changes
Method 2: Publish Previous Version
View Version History
Select Previous Version
Use as Draft
Publish
Best Practices
Test Thoroughly Before Publishing
Test Thoroughly Before Publishing
- Test with real-world data samples
- Test edge cases and error scenarios
- Verify all integrations work
- Check performance with expected load
Use Descriptive Version Names
Use Descriptive Version Names
Enable Gradually
Enable Gradually
- Publish the new version
- Keep old version enabled
- Test new version manually
- Switch to new version
- Monitor for issues
Monitor After Publishing
Monitor After Publishing
- Check run history regularly
- Set up error notifications
- Review execution logs
- Track success rates
Keep Draft Clean
Keep Draft Clean
- Don’t leave unfinished changes in draft
- Publish or discard regularly
- Use version history to track changes
Publishing Checklist
✅ All Steps Valid
✅ Flow Tested
✅ Connections Active
✅ Error Handling Configured
✅ Changes Saved
✅ Click Publish
✅ Enable Flow
✅ Verify Running
Troubleshooting
Toggle Disabled After Publishing
Toggle Disabled After Publishing
operationStatus to become NONE.Flow Not Executing After Enabling
Flow Not Executing After Enabling
- Trigger not properly configured
- Webhook not registered
- Schedule not created
- Disable and re-enable the flow
- Check trigger configuration
- Review trigger logs