How to use #var references
#var reference is used for all variables in a Process Scope.
Note that when executing a unit test for a Task, #var references cannot be used.
The syntax for using #var references is #var.variable_name.
Example: #var.productCode
#var reference in code
In the example below, a productCode variable is defined as the result of an expression that combines two previously defined variables (both of string type). The #var reference for productCode that you would use in the Process is #var.productCode
.
β
#var reference in foreach
Foreach Element defines variables that carry values if the item is in iteration.
#var.variable_name
For example #var.
i
It also defines an index variable that contains the current iteration round value.
#var.variable_name_index
For example #var.i_index
Objects in #var references
#var reference can also contain an object. The items within an object can be referenced using dot notation. For example #var.i.variable_item
The next article is Introduction to Low-Code Approach of Frends.