On Variable Update Node
The On Variable Changed node triggers your workflow when a specific application variable is updated. This enables reactive patterns where one part of your system can signal another to take action.When to Use
- State-driven workflows - React to status changes in your application
- Threshold monitoring - Trigger when counters or metrics cross thresholds
- Data synchronization - Propagate changes across systems
- Event broadcasting - One workflow updates a variable, others react
- Decoupled logic - Separate “what happened” from “what to do about it”
Example: Order Status Notifications
Notify customers when their order status changes:Set up the variable monitor
Add an On Variable Changed node:
- Variable name: order_status
- Change type: any
Determine notification content
Use a Switch node on
{{variable_changed_1.newValue}}:- processing → “Your order is being prepared”
- shipped → “Your order is on the way”
- delivered → “Your order has been delivered”
Example: Threshold Alert
Alert when error count exceeds a threshold: Monitor workflow:- Variable:
error_count - Change type:
increase
Example: Configuration Propagation
Update multiple systems when a configuration changes:Use Patterns
Event Broadcasting
One workflow sets a variable, multiple workflows react:State Machine
Build state machines where transitions trigger actions:Counter-Based Triggers
Trigger actions based on accumulated counts:Tips
Variable changes from Set Variable nodes within the same workflow don’t trigger On Variable Changed events in that same workflow run. This prevents self-triggering.
Settings
Display name shown on the canvas.
Unique identifier for referencing outputs.
The name of the application variable to monitor.
What type of change to trigger on:
- any - Any change to the variable
- specific - Only when changed to a specific value
- increase - When numeric value increases
- decrease - When numeric value decreases
For
specific change type: the value that triggers the event.Outputs
Name of the variable that changed.
The value before the change.
The current value after the change.
ISO timestamp of when the change occurred.
Identifier of what triggered the change (workflow ID, node key, or “manual”).
