Variables

Parent page: PAW Robot/Studio › Workflow


Variables

Variables are used to store and update the data used while workflows run and to pass it between different activities. Each variable has a name and a data type; variables are defined at workflow level. If needed, an initial value can be assigned to the variable.

Field

Description

Name

The name that identifies the variable; it must differ from the names of the other variables, arguments and global variables in the workflow.

Type

Specifies the type of data to be stored in the variable. For example String, Int32, Boolean, DataTable or Object.

Default Value

The initial value optionally set when the variable is created. The value must be compatible with the data type.

Adding a Variable

  1. Open the Variables panel.

  2. Click the + (Create Variable) button.

  3. Set the name and data type of the variable.

  4. Enter its default value if needed.

  5. Click Save.

  6. Use the variable you defined in the relevant activities.

Note: Make sure that the variable name is unique within the workflow and that the default value entered is compatible with the selected data type.

Variables Panel, Add Variable Button

Variables Panel, Add Variable Button

Create Variable Window

Create Variable Window


Find References

To see where a variable is used in the workflow, right-click the variable in the Variables panel and select the Find References option.

The result list that opens shows the places where the variable is used. Double-click a row in the list to focus directly on that usage in the workflow.

This feature makes it easier to track variable usage, quickly find the related activities and review the possible impact when making changes.

Where supported, the same feature can also be used for arguments in the Arguments panel.