Variables

Shares in-memory values between Steps in one Workflow activation.

Revision History

0.0.0.1 - Initial release.

Setup Notes

You can add this Node to a Workflow without configuring a Connection, authentication, or external access. The Node runs on Flowgear Cloud and Local Clusters.

Variables exist only within the current Workflow activation. Each new activation and each Sub Workflow has an independent variable scope.

Methods

This Node provides methods for retrieving, creating, and updating Workflow-scoped variables.

Get

Retrieves a variable by its exact key and indicates whether the variable exists.

Parameter Type Description
Key String The case-sensitive variable key to retrieve.
Return Type Description
Result Object The variable lookup result.
Result.Found Boolean Indicates whether a variable with the exact key exists.
Result.Value Object The stored value, or null when the key is missing or the stored value is null.

Set

Creates a variable or replaces the value of an existing key for the current Workflow activation.

Parameter Type Description
Key String The case-sensitive variable key to create or update.
Value Object The runtime value to retain. This value can be null.

This method does not return a value.

Usage Notes

  • Keys are matched exactly. Case and case identify different variables.
  • Set overwrites an existing variable with the same key.
  • Check Result.Found to distinguish a missing variable from a variable whose stored value is null.
  • Values are held as runtime objects and are not serialized while stored.
  • Variables are discarded when the Workflow activation ends and cannot be used for persistent storage.
  • A Sub Workflow cannot access variables stored by its parent Workflow activation.