Workflow Automation Guide
Build resilient, scalable workflows using OpsHub’s Temporal-based orchestration engine. From simple automation to complex multi-step processes with error handling and retries.Temporal Architecture
OpsHub leverages Temporal for durable workflow execution:- Fault Tolerance: Workflows survive failures and resume automatically
- Event Sourcing: Complete history of all workflow executions
- Scalability: Handle thousands of concurrent workflows
- Long-Running: Support for workflows running days or months
- Versioning: Safe deployment of workflow changes
Creating Workflows
Visual Workflow Builder
Design workflows using the drag-and-drop interface:- Navigate to Workflows → Create New
- Select workflow template or start from scratch
- Drag activities from the palette
- Connect activities to define flow
- Configure each activity’s parameters
- Set error handling and retry policies
- Test and deploy
Code-Based Workflows
Define workflows programmatically:Common Workflow Patterns
Daily NAV Calculation
Automated daily NAV calculation with validation:Trade Processing
End-to-end trade processing workflow:Error Handling
Implement robust error handling:Scheduling & Triggers
Cron Schedules
Set up recurring workflows:Event Triggers
React to events:Monitoring & Observability
Track workflow execution:- Real-time Dashboard: Monitor running workflows
- Execution History: View completed workflows
- Performance Metrics: Response times and throughput
- Error Tracking: Failed workflows and retry attempts
- Audit Trail: Complete execution history
Best Practices
- Idempotency: Ensure activities can be safely retried
- Timeouts: Set appropriate timeouts for activities
- Versioning: Use workflow versioning for updates
- Testing: Write unit tests for workflows
- Documentation: Document workflow logic and dependencies
Next Steps: Explore Dashboard Guide for visualizing workflow data.