Skip to main content
The On Variable Update 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.
On Variable Update node configuration form

On Variable Update configuration — pick the variable to watch and optionally constrain to specific values.

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:
1

Set up the variable monitor

Add an On Variable Update node:
  • Variable name: order_status
  • Change type: any
2

Determine notification content

Use a Multi-Condition 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”
3

Send the notification

Connect to an External API (email or SMS) node to notify the customer.
Workflow structure:

Example: Threshold Alert

Alert when error count exceeds a threshold: Monitor workflow:
Configuration:
  • Variable: error_count
  • Change type: increase
Then in your Condition node:
This ensures you alert only when crossing the threshold, not on every increase.

Example: Configuration Propagation

Update multiple systems when a configuration changes:
This pattern keeps distributed systems in sync when central 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

Use specific value triggers when you care about a particular state, and any triggers when you need to react to all changes.
Access both previousValue and newValue to implement transition logic - different actions for different state changes.
Avoid circular dependencies where a variable change triggers a workflow that changes the same variable. This can create infinite loops.
Variable changes from Update Variable nodes within the same workflow don’t trigger On Variable Update events in that same workflow run. This prevents self-triggering.

Settings

string
default:"On Variable Update"
Display name shown on the canvas.
string
default:"variable_changed_1"
Unique identifier for referencing outputs.
string
required
The name of the application variable to monitor.
string
default:"any"
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
any
For specific change type: the value that triggers the event.

Outputs

string
Name of the variable that changed.
any
The value before the change.
any
The current value after the change.
string
ISO timestamp of when the change occurred.
string
Identifier of what triggered the change (workflow ID, node key, or “manual”).

Update Variable

Update variables that trigger this event.

Condition

Add logic based on the changed value.