Overview
Update Process Variables allows you to modify process variables on active process instances. You can edit, add, or delete variables on process instances with Started or On Hold status.
- JSON syntax validation and formatting
- Edit, add, or delete operations on variables
- Automatic synchronization to Task Manager and Elasticsearch
- Audit logging with snapshots of previous values
Features
JSON editor
The JSON editor offers:- JSON syntax validation
- Syntax highlighting
- Auto-formatting
- Error detection

Edit process variables using the JSON editor with JSON validation
Access points
Access the editor from two locations:- From Process Instances page
- From View process instance page
- Navigate to Processes → Active Process → Process instances
- Click the contextual menu (three dots) on any process instance row
- Select Modify Variables
- The system navigates to the Process Instance page and opens the Variables tab in edit mode

Edit process variables using the JSON editor with JSON validation
Dual view modes
Switch between two viewing modes for process variables:- Tree View (existing): Hierarchical display of variables with expand/collapse

Tree view of process variables
- JSON View: Raw JSON format, editable when in edit mode

JSON view of process variables
Operations
You can:- Edit existing attribute values
- Add new attributes or objects
- Delete existing attributes or objects
Access requirements
Check permissions
process_variables_edit permission at the workspace level.Navigate to process instance
- Process Instances list → contextual menu
- Process Instance detail page → secondary navigation
Open Variables tab
Editing process variables
Select active instance
Switch to JSON View
Enable edit mode
process_variables_edit permission.Modify variables
Validate JSON
- Missing commas between properties
- Unclosed brackets or braces
- Missing quotes around strings
- Trailing commas
Save changes
- Creates a snapshot of previous values in a new table
- Updates the process instance variables
- Syncs to Task Manager (using existing mechanisms)
- Updates Elasticsearch (for variables configured for data search)
- Records the modification in the audit log
Review audit log
Permissions and security
wks_process_instance_variables_edit (permission name: process_variables_edit). Users with this permission can edit and save variables; others can only view variables in read-only mode. By default, ORG_ADMIN and WORKSPACE_ADMIN roles include this permission.Security features: All modifications are logged in the audit trail with user identity and timestamp. Previous values are preserved in snapshot history before changes are applied. JSON syntax validation prevents data corruption.For more information about permissions, roles, and access management, see Workspaces Access Rights and the Permission Reference Guide.Data synchronization
Updated automatically
When you modify process variables, the following are updated:Process instance parameters
Task Manager
Elasticsearch
Snapshot table
Not updated
The following are preserved to maintain data integrity:Process snapshots
Debug records
Existing audit logs
Subprocess variables
Synchronization details
Task manager sync
Elasticsearch sync
Audit logging
Audit log structure
Every process variable modification creates a detailed audit log entry with the following information:| Field | Description | Example |
|---|---|---|
| Workspace | Workspace ID where modification occurred | ws-12345 |
| Feature | Feature being used | Process variables |
| Section | Section within the feature | Process Instance |
| App ID | Application UUID | app-uuid-123 |
| Application Name | Name of the app | Loan Application |
| Subject | What was modified | Process variables |
| Event | Type of event | Edit |
| Subject Identifier | Process instance UUID | pi-uuid-456 |
| Body | JSON with new process parameters | Complete JSON object |
| User | User who made the change | [email protected] |
| Timestamp | When the change occurred | 2025-01-15T10:30:00Z |
Viewing audit logs
Audit logs are displayed in the Audit Log tab within the process instance:Open process instance
Go to Audit Log tab
Find modification entry
Review details
- Complete before/after values (in Body field)
- User who made the change
- Exact timestamp
- All metadata
Compliance and traceability
Who
What
When
Where
Previous values
Important considerations
Subprocess impact
Back navigation
Integration messages
Process instance debug table
Not updated: the process instance debug table records remain unchanged. Reason: debug records capture execution history as it occurred. Modifying them would compromise debugging and troubleshooting capabilities.Best practices
When to use
Correct user input errors
Unblock stuck instances
Fix integration data issues
Add missing attributes
Remove invalid data
Update search keywords
Fix Elasticsearch data
When not to use
Regular operational updates
Subprocess coordination
Complex back navigation flows
While waiting for integrations
Routine data corrections
Automated scripts
Validation before saving
Verify JSON syntax
Review impact
Check dependencies
Document changes
Testing and validation
Test in lower environments first
Verify Elasticsearch sync
Check Task Manager
Monitor process flow
Review audit log
Operational guidelines
- Before modifying
- During modification
- After modification
Review process state
Check subprocesses
Verify integrations
Understand navigation
Document reason
Common use cases
1. Correct user input errors
Scenario:Customer submitted incorrect loan data (wrong income amount, invalid address, incorrect contact information). Solution:
- Navigate to the process instance
- Access Variables tab in edit mode
- Locate the incorrect values in JSON
- Correct the data:
- Save changes
- Process continues without requiring customer to restart the process
2. Unblock stuck process instances
Scenario:Process is waiting for external data that never arrives due to integration timeout or external system being down indefinitely. Solution:
- Identify the variable causing the blockage
- Open process variables in edit mode
- Update the variable to provide expected data or bypass condition:
- Save changes
- Instance unblocks and continues execution
3. Fix integration data issues
Scenario:External credit check system returned incorrect or incomplete data due to system error. Solution:
- Review the integration response variables
- Edit variables to correct the data:
- Save changes
- Process continues with accurate data
4. Add missing attributes
Scenario:Process needs additional data that wasn’t collected at start time, but is now required for a decision point. Solution:
- Access process variables
- Add new required attributes:
- Save changes
- Process can now access the missing data at decision points
5. Delete invalid data
Scenario:Process contains test data or incorrect objects that shouldn’t be there and are causing validation failures. Solution:
- Open process variables
- Remove problematic data:
- Save changes
- Process continues with clean, valid data only
6. Update task manager keywords
Scenario:Task search keywords need updating based on corrected customer data for better task discoverability. Solution:
- Modify variables that are configured as Task Manager keywords:
- Save changes
- System automatically syncs to Task Manager
- Tasks become searchable with correct keywords
7. Fix Elasticsearch search data
Scenario:Process data indexed for search contains errors, making instances unsearchable or showing in wrong search results. Solution:
- Identify variables configured for Elasticsearch data search
- Correct the values:
- Save changes
- Elasticsearch automatically updates
- Process instances appear in correct search results
8. Emergency business rule changes
Scenario:Regulatory change requires immediate update to pricing or terms in active applications. Solution:
- Access affected process instances
- Update variables to reflect new business rules:
- Save changes for all affected instances
- Processes continue with compliant data
Troubleshooting
Edit button not visible
Edit button not visible
Cannot save - JSON validation error
Cannot save - JSON validation error
- Save button disabled or shows error
- Red error indicators in editor
- Error message: “Invalid JSON format”
- Use JSON editor error highlights to locate issues
- Copy JSON to external validator (jsonlint.com)
- Check for common issues: commas, brackets, quotes
- Validate structure matches JSON specification
- Remove trailing commas
- Ensure all brackets and braces are closed
Changes not reflected in Task Manager
Changes not reflected in Task Manager
- Task Manager still shows old values
- Task search doesn’t find with new keywords
- Task data appears outdated
- Task Manager sync delay
- Variables not configured for Task Manager keywords
- Task Manager service issues
- Cache issues
- Wait and refresh:
- Wait 10-30 seconds for sync
- Refresh Task Manager view
- Clear browser cache if needed
- Verify configuration:
- Check if variables are configured as task keywords
- Review Task Manager configuration
- Confirm variable mapping is correct
- Check system health:
- Verify Task Manager service is running
- Review sync logs for errors
- Check Kafka messages if available
- Verify save completed:
- Check audit log for successful save
- Confirm no error messages appeared
- Review process instance variables show new values
Elasticsearch search not showing updated data
Elasticsearch search not showing updated data
- Search doesn’t return expected results
- Old values appear in search results
- Process instance not found with new criteria
- Elasticsearch sync delay
- Variables not configured for data search
- Index refresh delay
- Elasticsearch service issues
- Wait for index refresh:
- Elasticsearch typically refreshes within seconds
- Wait up to 1 minute for propagation
- Try search again after waiting
- Verify configuration:
- Check if variables are configured for Elasticsearch indexing
- Review process definition for data search settings
- Confirm variable paths match index mapping
- Check Elasticsearch health:
- Verify Elasticsearch service is running
- Check index status
- Review indexing logs for errors
- Manual verification:
- Query Elasticsearch directly if possible
- Check index document for process instance
- Verify field values match expected data
Modified variables lost after back navigation
Modified variables lost after back navigation
Subprocess shows different data than parent
Subprocess shows different data than parent
- Parent process variables updated
- Subprocess still has old values
- Data inconsistency between parent and child
- Subprocesses have independent execution context
- Each subprocess operates on its snapshot of data
- Maintains process isolation and integrity
- Understand before modifying:
- Check if process has active subprocesses
- Review parent-child data dependencies
- Assess impact of data divergence
- Manual coordination:
- Modify subprocess variables separately if needed
- Document intentional data divergence
- Test subprocess behavior with original values
- Process design considerations:
- Design processes to minimize parent-child data coupling
- Pass critical data as subprocess parameters
- Use events for dynamic data synchronization
Integration response doesn't match modified data
Integration response doesn't match modified data
- Integration called before modification
- Response based on original values
- Data mismatch between variables and integration result
- Integration already executed with original parameters
- External system processed original request
- Response is based on what was sent
- Modifying variables is local to process instance
- Avoid modifying during integration:
- Check if token is waiting for integration response
- Wait for integration to complete before modifying
- Document which variables were sent to integration
- Re-execute if needed:
- Consider re-executing the integration node
- Manually trigger integration with new values if possible
- Design retry mechanisms in process flow
- Accept response:
- Use integration response as-is
- Modify only non-integration-related variables
- Document why integration response doesn’t match

