Variables

Data containers

Flow variables are data containers that hold values during the execution of a flow. They can represent various types of information, such as numbers, strings, dates, or more complex data structures like arrays or maps.

Flow variables play a fundamental role in orchestrating and controlling the behavior of flows, enabling the exchange of data and information between different components and facilitating the automation of business processes.


Purpose

Flow variables serve multiple purposes within a flow, including:

  • Storing intermediate results or temporary data.

  • Passing information between different nodes or steps in the flow.

  • Controlling the flow of execution based on conditions or business rules.

  • Providing input parameters for nodes.


Scope

Flow variables can have different scopes depending on where they are defined and how they are used within the flow.

Flow Local Variables - are available for use by all nodes within the flow.

Node's Variables - are available for use by all nodes connected below the node that creates the variable.


Lifecycle

  • Initialization: Variables are initialized with an initial value before they are used.

  • Modification: Variables may be modified or updated as the flow progresses.

  • Reference: Variables are referenced by nodes or steps to read or write values.

  • Cleanup: Variables may be cleared or reset at the end of the flow.


Data Types

Flow variables can hold values of various data types, including primitive types (e.g., integers, strings, booleans) and complex types (e.g., arrays, objects, custom data structures).


Last updated