TO VARIABLE

In a data query, you can use the TO VARIABLE operator to collect the stream and store it into a graph variable. You can then call this variable within the expressions of other operators using @variable_name.

The execution of the service is only possible if there is no dependency cycle between these variables.

Warning: This mechanism can lead to accumulation or to the reexecution of a graph part. This can increase memory usage and impact performance. However, use variables when required, as there is no better way to optimize the configuration.

This page discusses:

See Also
ER SECURITY
Expression Language
Defining Data Queries

Input

There is one input. There are no constraints on the element type. The stream can contain more than one element (elements are collected into an array).

Output

No output stream. This operator creates a graph variable.

General Parameters

Parameter Description
Label

Specify the label to display below the operator type in the data query.

Description

Add a description to display as tooltip on hover over the operator icon.

Tip: It is useful to explain what the operator does, especially when you share the data query with other users.
Variable name

Name of the graph variable to create.

Important: The name must not include @

Operator input variable Specify the name to give to the variable that contains the input data. The variable is then available when you define expressions.

Example

You can store information into a variable to reuse it in another operator.