Workflow Versioning
Introduction
Process Studio manages workflow versions to secure modifications and avoid impacting current records.
The versioning system is automatic: when saving an active workflow, the system offers to create a new version or replace the existing version.
Workflow Statuses
A workflow can have 3 statuses:
| Status | Value | Description | Impact on versioning |
|---|---|---|---|
| Draft | 0 | Workflow in creation, not activated. | No version management. Simple save. |
| Active | 1 | Workflow activated and available for users. | Version management enabled. |
| In progress | 2 | Workflow with records currently being executed. | Version management enabled. |
[!NOTE] Versioning applies only if the workflow is Active (1) or In progress (2). A Draft (0) workflow saves normally without version creation.
How Versioning Works
Saving a Draft Workflow (Status 0)
Behavior: Direct save without dialog.
Action:
- Modify the workflow.
- Click Save (Ctrl+S).
- Changes replace the existing draft version.
No version number: The workflow remains in draft until activated.
Saving an Active Workflow (Status 1 or 2)
Behavior: A dialog appears to choose the versioning strategy.
Version dialog: When you save an active workflow, a dialog box appears with 3 options:
| Option | Description | Result |
|---|---|---|
| Yes | Create a new version. | The system creates version N+1. The old version remains available for current records. The workflow is closed and reopened on the new version (Draft status). |
| No | Replace the current version. | Changes overwrite the current version. Current records use the new version (⚠️ Risky!). |
| Details | Display version history. | Allows viewing all existing versions before deciding. |
[!WARNING] "No" Option (Replace): This option is risky as it modifies the workflow for records already in progress. Use only to fix minor bugs.
Creating a New Version
Process
- Open an active workflow (status 1 or 2).
- Modify the workflow (add step, conditions, etc.).
- Click Save (Ctrl+S).
- The version dialog appears.
- Click Yes (Create a new version).
- The system suggests a version number (auto-incremented).
- You can modify this number if desired (e.g., go from 2.0 to 3.0 instead of 2.0 to 2.1).
- Validate.
Result:
- A new version is created (status: Draft).
- The old version remains active and continues managing current records.
- The workflow is closed then reopened on the new draft version.
- You must activate the new version to make it available to users.
Version Numbering
Format
Versions use a simple numeric format:
1,2,3... (major versions)
Auto-increment
When creating a new version, the system automatically suggests the next number:
- Current version:
1→ Suggestion:2
Manual modification: You can change the suggested number:
- Current version:
1→ You can choose3(major version jump)
[!NOTE] The system prevents creating a version if the chosen number already exists.
Impact on Records
Records in Progress
Behavior: Always keep the workflow version that was active when they started.
Example:
- A record starts on 01/01 with workflow version
1. - You create and activate version
2on 01/15. - The record continues in version 1 until closure (even in March, April...).
Reason: Ensure stability. Changing the workflow mid-process could break the process or create inconsistencies.
New Records
Behavior: Automatically use the latest activated version.
Example:
- Version
2activated on 01/15. - All records created from 01/16 start in version
2.
Activating a New Version
After creating a new version (status: Draft), you must activate it:
Procedure
- Close the designer.
- Return to the workflow list.
- Your workflow appears 2 times (or more) with different versions:
- Version
1(Active) ✅ - Version
2(Draft) ⚪
- Version
- Select version
2. - Click Activate in the ribbon.
- Version
2becomes active ✅. - New records now use version
2. - Records in progress remain on version
1.
Best Practices
1. Test Before Activating
Recommended procedure:
- Create a new version (it's in Draft).
- Test the workflow with a test document.
- Check all paths (validation, rejection, etc.).
- Fix if necessary (simple save, no new version).
- Once validated → Activate the version.
2. In Production Never Replace an Active Version ("No" Option)
Avoid clicking "No" (Replace current version) except for:
- Minor bug fixes (typo, label).
- No structural impact on the workflow.
Why: This affects current records immediately, which can cause malfunctions.
3. Deactivate Old Versions Once Records Are Closed
When all current records on an old version are finished:
- Verify that no records use the old version.
- Deactivate the old version to clean up the list.
Frequently Asked Questions
Q: In production, can I modify an active workflow without creating a version?
A: No. Once a workflow is active, any save triggers the versioning dialog. You must choose "New version" (Yes) or "Replace" (No).
Q: How can I cancel a modification before creating a new version?
A: Close the workflow without saving (Ctrl+Z or close without saving).
Q: What happens if I delete a step used by current records?
A: If you create a new version, current records keep the old version (with the step). If you replace the current version, current records may malfunction.
Q: How many versions can I create?
A: Unlimited. All versions are stored in the database.
Q: In production, can I delete an old version?
A: Generally, no (for security). Contact your system administrator if necessary.
Q: How do I know which version a record uses?
A: In the user portal or via record properties, the workflow version number is displayed.
See also:
- Workflow Creation - Create a workflow
- Workflow Management - Activate, deploy
- Workflow Verification - Test before publication