Passing Parameter and Variable Values between Sessions
Passing Parameter and Variable Values between Sessions
You can assign parameter and variable values in a session to pass values from one session to any subsequent session in the same workflow or worklet. For example, a workflow contains two sessions s_NewCustomers and s_MergeCustomers. Session s_MergeCustomers needs to use the value of a mapping variable updated in s_NewCustomers.
The following figure shows the workflow:
To pass the mapping variable value from s_NewCustomers to s_MergeCustomers, complete the following steps:
Configure the mapping associated with session s_NewCustomers to use a mapping variable, for example, $$Count1.
Configure the mapping associated with session s_MergeCustomers to use a mapping variable, for example, $$Count2.
Configure the workflow to use a user-defined workflow variable, for example, $$PassCountValue.
Configure session s_NewCustomers to assign the value of mapping variable $$Count1 to workflow variable $$PassCountValue after the session completes successfully.
Configure session s_MergeCustomers to assign the value of workflow variable $$PassCountValue to mapping variable $$Count2 before the session starts.