You can use the Eval task to set properties at runtime or modify existing properties. The value of the property that is set or modified using an Eval task is valid only as long as the workflow runs.
When you set a property usingthe Eval task, the value of the property is valid for the tasks that are run after the evaluation task. To reset a property’s value for the entire workflow, click Show Advanced and, in the Scope dropdown, select Global.
You can use the following syntax samples in an Eval task:
The following syntax sets a property called alpha with the value "beta":
alpha=beta
If gamma=beta
, then the syntax alpha=@@gamma@@
sets the property alpha with the value of property gamma.
The syntax@@theta@@=omega
creates a property, the name of which is the value of property theta. This value of this newly set property is "omega".
The syntax @@lambda@@=@@epsilon@@
creates a property, the name of which is the value of property lambda. The value of this newly set property is the same as that of property epsilon.
When using the Shell script type (which requires connection to a machine), the following syntax should be used to set a property: echo alpha=@@gamma@@
When using the Epsilon script type (which does not require connection to a machine), the following syntax should be used to set a property:
#script
print "alpha=%s" %( @@gamma@@ )