You can assign variable values in a worklet to pass values from one worklet to any subsequent worklet in the same workflow or parent worklet. For example, a workflow contains two worklets wklt_CreateCustList and wklt_UpdateCustOrders. Worklet wklt_UpdateCustOrders needs to use the value of a worklet variable updated in wklt_CreateCustList.
The following figure shows the workflow:
To pass the worklet variable value from wklt_CreateCustList to wklt_UpdateCustOrders, complete the following steps:
Configure worklet wklt_CreateCustList to use a worklet variable, for example, $$URLString1.
Configure worklet wklt_UpdateCustOrders to use a worklet variable, for example, $$URLString2.
Configure the workflow to use a workflow variable, for example, $$PassURLString.
Configure worklet wklt_CreateCustList to assign the value of worklet variable $$URLString1 to workflow variable $$PassURLString after the worklet completes.
Configure worklet wklt_UpdateCustOrders to assign the value of workflow variable $$PassURLString to worklet variable $$URLString2 before the worklet starts.