User-Defined Process Variables
You can define your own process variables and assign values to them in your process definition. Process variables are defined on the Process Variables tab of the Process Definition resource. You create a process variable in the same way you create data schemas for activities. For more information about creating data schemas, see Editor.
The following figure illustrates creating a process variable. You add a process variable and give it a name in the left-most panel, then you create its schema in the middle panel.
Creating a process variable
To assign a value to a user-defined process variable, use the Assign activity. Assign allows you to specify which process variable you wish to modify. Only user-defined process variables can be modified. You can then specify a new value for the process variable in the Input tab of the Assign activity. The following figure illustrates assigning a value to a user-defined process variable.
Assigning a value to a user-defined process variable
When you use the Assign activity, the entire contents of the process variable is replaced by the specified new contents. That is, if you do not supply a value for an element in a process variable, that element no longer contains a value at run time. Therefore, use the Assign activity to reset the value of a process variable, and make sure to supply the correct values for all elements in the process variable.
For more information about the Assign activity, see the
.