Example of Variable Map Methods in Use
The following figure shows the PSP Driver Workflow Process, which is a generic example of a controller workflow. PSP Driver Workflow Process uses variable maps to retrieve data that is then synchronized back to the database.

As shown in the previous figure, the PSP Driver Workflow Process steps perform as follows:
Get Context Row Set. Calls the Context Service business service method GetRowSetData to retrieve header-level information using the Context variable map (Variable Map - Context).
Get Row Set. Calls the Context Service business service method GetRowSetData to retrieve row-level information using the Row Set variable map (Variable Map - Row Set) and to scope input arguments.
Dispatch Service. Calls the sub workflow process defined in the calling signal and passes in the input argument.
Set Pricing Date. Sets pricing date based on whether it is for scenario testing:
Set system time stamp if it is not for scenario testing:
{Context.Effective Pricing Date} = TimeStamp()
Set Active JWS Test DT if it is for scenario testing:
{Context.Effective Pricing Date} = GetProfileAttr("Active JWS Test DT")
Sync Row Set. Calls the Context Service business service method SyncRowSetData to write any updates back to the database (for example, updates to prices).
To define the variable map used by a PSP procedure
Navigate to the Administration - Order Management screen, then the Signals view.
In the Signals list applet, select the signal that will invoke the PSP procedure.
In the Versions list applet, click the Work Space hyperlink to access the Actions list.
In the Actions list applet, enter the name of the controller workflow in the Service Name field.
Note: Most PSP signals invoke the generic PSP Driver Workflow Process.In the Parameters list applet, (scroll down, if necessary), enter parameters for the signal, as follows:
Using Scope arguments and values, define the scope of line items retrieved by the variable map.
Using Variable Map parameters, define the variable maps used to retrieve Context and Row Set data.