Variables are configured through their properties. You can set them in the Variables panel. The main properties in UiPath are:
1) Name:
It should be as descriptive as possible to make your automation easy to read by other developers and to save time.
2) Type
Defines what kind of data can be stored in the variable. In UiPath, the type is declared when the variable is created, however there are some specific types that are more generic and can accommodate different types of data.
3) Scope
The part of the workflow in which the variable can be used. Some variables can be global, others local. In real automation scenarios, there are many variables in use. Making multiple variables unnecessarily global can cause efficiency issues as well as possibility for confusion.
4) Default value
In general, variables have initial values that change throughout the process. If no initial value is assigned at the creation of the variable, there is generally a default rule that assigns a value
Creating Variables
There are 3 ways to create variables in UiPath:
From the Variables panel – Open the Variables panel, select the ‘Create new Variable’ option, and fill in the fields as needed. When you need it, provide its name in the Designer panel or in the desired Properties field.
From the Designer panel – Drag an activity with a variable field visible (i.e. ‘Assign’) and press Ctrl+K. Name it and then check its properties in the Variables panel.
From the Properties panel – In the Properties panel of the activity, place the cursor in the field in which the variable is needed (i.e. Output) and press Ctrl+K. Name it and then check its properties in the Variables panel.
In variable pane, right click on the variable and we can add annotation for better understanding of the variable
More info on Managing Variables
More info on Variable Types
No comments:
Post a Comment