This guide walks you through the complete solution lifecycle from development through production deployment. Learn to manage versions, migrate between environments, and maintain solution integrity across all stages.
Prerequisites:
- Understanding of three workspaces (Solution Center, Designer, Runtime)
- Familiarity with execution profiles
- Basic knowledge of solution architecture
Solution Lifecycle Overview
The Three Stages
Development → |
---|
|
Validation → |
---|
|
Production |
---|
|
The Three Workspaces
Solution Center → |
---|
|
Designer → |
---|
|
Runtime. |
---|
|
↓
Solution Configuration |
---|
Database (.dbsln) |
Development Stage
Initial Development
Creating the solution:
- Solution Center → New Solution
- Select appropriate template
- Configure in Designer
- Use Development profile
Development environment characteristics:
- Local SQLite databases
- Full diagnostic logging
- Simulation data enabled
- Unrestricted editing
- Test mode available
Development Workflow
- Configure modules progressively:
- Define tags and templates
- Setup device connections
- Create displays
- Add business logic
- Test incrementally:
- Use Test Mode (F5)
- Verify each module
- Check integrations
- Monitor performance
- Version control:
- Regular backups
- Track changes
- Document modifications
- Tag development versions
Validation Stage
Moving to Validation
Preparation steps:
- Complete development features
- Build solution (F6)
- Export/backup development version
- Create validation environment
Validation profile setup:
Database: Test SQL Server
Historian: Limited retention
Security: Test credentials
Clients: Limited access
Validation Testing
Functional testing:
- All features work as designed
- Data flows correctly
- Alarms trigger properly
- Reports generate accurately
Performance testing:
- Load testing with real data volumes
- Stress testing communications
- Client connection limits
- Resource utilization
Integration testing:
- External system connections
- Database operations
- Third-party interfaces
- Redundancy failover
Validation Checklist
? All modules configured ? Scripts compile without errors ? Displays render correctly ? Communications stable ? Alarms functioning ? Historical data recording ? Security implemented ? Performance acceptable
Production Stage
Production Deployment
Pre-deployment:
- Complete validation sign-off
- Create production backup
- Document configuration
- Prepare rollback plan
Deployment steps:
- Publish solution:
Runtime → Publish Version: 1.0.0 Type: Read-only (.dbrun)
- Transfer to production:
- Copy .dbrun file
- Install on production server
- Configure production profile
- Production profile:
Database: Production SQL Historian: Full retention Security: Active Directory Redundancy: Enabled
Production Startup
- Stop any running solutions
- Load production solution
- Select Production profile
- Start with monitoring
- Verify all modules active
- Check client connections
- Confirm data flow
Version Management
Version Numbering
Standard format: Major.Minor.Build
- Major: Significant changes
- Minor: Feature additions
- Build: Bug fixes
Example progression:
1.0.0 - Initial production
1.1.0 - Added reporting module
1.1.1 - Fixed alarm bug
2.0.0 - Major upgrade
Creating Versions
Development versions:
- Auto-increment build number
- Tag with date/time
- Include developer notes
Production versions:
- Go to Runtime → Publish
- Set version number
- Add release notes
- Create .dbrun file
- Archive with documentation
Migration Procedures
Development to Validation
- Export from Development:
- Build solution
- Create backup
- Document changes
- Import to Validation:
- Load in test environment
- Switch to Validation profile
- Update connection strings
- Test all functions
Validation to Production
- Prepare solution:
- Final build
- Publish read-only
- Create deployment package
- Deploy to production:
- Schedule maintenance window
- Backup current production
- Install new version
- Verify operation
- Monitor closely
Rollback Procedures
If issues occur:
- Stop current solution
- Load previous .dbrun
- Start with last known good
- Investigate issues offline
- Plan corrective action
Backup and Recovery
Backup Strategy
Development backups:
- Daily automatic
- Before major changes
- Keep 30 days
Production backups:
- Continuous replication
- Daily full backup
- Weekly archives
- Monthly long-term
Backup Methods
Manual backup:
- Solution Center → Select solution
- File → Export → Backup
- Choose location
- Include resources
Automatic backup:
batch
TBackup.exe /solution:"Production" /output:"D:\Backups" /daily
Recovery Procedures
From backup:
- Solution Center → Import
- Select .dbback file
- Choose restore location
- Verify integrity
- Update configuration
From published version:
- Locate .dbrun file
- Copy to production
- Start with profile
- Verify operation
Change Management
Change Control Process
- Request: Document change need
- Review: Assess impact
- Approve: Get authorization
- Implement: Make change in Dev
- Test: Validate in Test
- Deploy: Move to Production
- Verify: Confirm operation
Online Changes
Changes safe for production:
- Tag value modifications
- Display updates
- Report adjustments
- User permissions
Changes requiring restart:
- Device configurations
- Database connections
- Module additions
- Port changes
Change Documentation
Track for each change:
- Date and time
- Person responsible
- Modules affected
- Reason for change
- Test results
- Rollback plan
Best Practices
Development Phase
Use meaningful naming conventions
Comment complex logic
Test edge cases
Document assumptions
Regular commits
Validation Phase
Test with production data volumes
Verify all integrations
Check error handling
Validate performance
Document test results
Production Phase
Monitor continuously
Maintain change log
Regular backups
Plan maintenance windows
Keep documentation current
General Guidelines
Never edit production directly
Always have rollback plan
Test changes thoroughly
Document everything
Maintain version history
This guide covered the complete solution lifecycle from initial development through production deployment, including version management, migration procedures, and best practices for maintaining solution integrity throughout all stages.