Parameters and Variables in Assignment Expressions
Parameters and Variables in Assignment Expressions
You can include workflow parameters and variables in the expression value that you assign to a user-defined workflow variable.
You can select a workflow parameter or variable from the
Inputs
tab in the
Assignment Expression Editor
, or you can type the parameter or variable name in the expression using the required syntax.
For example, you create a user-defined workflow variable named Counter and set the initial value to 0. Use the Assignment task to increment the value of the variable by 1. Enter the following expression in the Assignment task:
$var:Counter + 1
The Data Integration Service does not resolve workflow variable or parameter values that are included in a string literal in an assignment expression. For example, you use an Assignment task to assign the following value to a variable:
The Data Integration Service does not evaluate the string literal, and so does not resolve the MappingIsSuccessful variable value. The Data Integration Service displays the variable name in the string.