Skip to Content

Variables

Variables are used to store data during process execution.

They allow:

  • Saving intermediate results
  • Passing data between steps
  • Simplifying complex expressions

All process variables are managed on the Variables panel. By default, it is located at the bottom of the screen:

variables1.png

Variable structure:

ParameterRequired?Description
NameYesUnique name (e.g., userName or itemCount). Defined in accordance with the rules of the selected language (C#, Python, or JavaScript).
GroupNoHelps sort variables by common attribute (e.g., “User Data”)
Data typeYesString, Int32, List[[[P0002]]] and others.
Default valueNoInitial value ("", 0, null). The result of the expression will be assigned to the variable. For example, if no default value is specified, its initial value will be null.
CommentNoDescription of the variable’s purpose
⚠️

For the type Double the default value must be written in 0.0 or 0d format._

Creating variables

You can add a variable in two ways:

Method 1: Through element properties

  1. Select an element in the process.
  2. In its properties, find the required field (e.g., “Text”).
  3. Right-click → Create variable – the type will be determined automatically.

variables2.png

Method 2: On the Variables panel

  1. Open the “Variables” panel (at the bottom of the screen).
  2. Click “Create variable” variables3.png.
  3. Fill in the data:
    • NametotalPrice
    • TypeDouble (you can enter 0.0 or 0d as the default value)
    • Group – “Finance” (optional)

If the variable is not assigned a default value, its value will be null.

  • You can drag the variable into the element property.

The variable data type is an autocomplete value. For example, just enter List<String> and press Enter. The system will automatically convert the type to System.Collections.Generic.List<System.String>. To see the full list of available types, click the ”…” button next to the corresponding field. Then select the desired value from the list:

variables4.png

For working with complex data types (e.g., List<String>) use the generic type selection assistant:

variables5.png

Data types of variables

Data typeExample valueWhen to use
String"Привет"Text
Int3242Integers
Double3.14Floating-point numbers
Booleantrue/falseBoolean values
List[[[P0008]]]["A", "B"]Data lists
DateTime2025-01-01Dates and time
  • For Double use a dot: 10.5, not 10,5.
  • List<> requires specifying the type of elements (e.g., List<Int32>).

Managing variables

Editing To change a variable, go to the Variables panel and double-click the row with the variable whose value you want to change. An edit window will open.

Renaming

It is recommended to change the variable name separately. For this, there is a Rename variable button on the panel variables6.png. Only in this case, the changes will be applied to the entire process in which it is used.

  1. Select the variable.
  2. Click Rename.
  3. Enter the new name.

variables7.png

⚠️

The variable name should not match parameter name from the search template. Otherwise, it will not be renamed. Example: if the variable is assigned the name Items, but the process also uses a search template with a parameter Items, then renaming the variable will not lead to the expected result.

Deleting

  1. Select the variable.
  2. Click the Delete variable button variables8.png or the Delete key.

Debugging and viewing values

During debugging, variable values are displayed:

  • In the Output panel
  • In the Current value column

variables9.png

For convenient viewing of the current value, click the View button.

variables10.png

An edit window will open. Data can be copied using the hotkeys Ctrl + C or the Copy command (context menu). Structured data is serialized in JSON format and will also be available as text.

variables11.png

To change the value during process execution, click the Change value button variables12.png.

variables13.png

Paste the new value into the window and click the OK button.

Last updated on