Assign variables on the Variables tab when you edit a worklet. Assign values to the following types of variables before or after a worklet runs:
Pre-worklet variable assignment.
Update user-defined worklet variables with the values of parent workflow or worklet variables or the values of mapping variables from other tasks in the workflow or parent worklet that run before this worklet.
Post-worklet variable assignment.
Update parent workflow and worklet variables with the values of user-defined worklet variables.
To assign variables in a worklet:
Edit the worklet for which you want to assign variables.
Click the Variables tab.
Select the variable assignment type:
Pre-worklet variable assignment.
Assign values to user-defined worklet variables before a worklet runs.
Post-worklet variable assignment.
Assign values to parent workflow and worklet variables after a worklet completes.
Click the edit button in the variable assignment field.
In the pre- or post-worklet variable assignment area, click the add button to add a variable assignment statement.
Click the open button in the User-Defined Worklet Variables and Parent Workflow/Worklet Variables fields to select the variables whose values you wish to read or assign. For pre-worklet variable assignment, you may enter parameter and variable names into these fields. The Workflow Manager does not validate parameter and variable names.
The Workflow Manager assigns values from the right side of the assignment statement to variables on the left side of the statement. So, if the variable assignment statement is “$$SiteURL_WFVar=$$SiteURL_WkltVar,” the Workflow Manager assigns the value of $$SiteURL_WkltVar to $$SiteURL_WFVar.