Siebel Order Management Infrastructure Guide > Variable Maps > About Using Variable Maps >
Using the Business Service Source Type to Populate Variables
The Business Service source type allows you to invoke a business service to populate:
- One or more variables
- A child property set of the current row
To invoke a business service to populate variables
- In the Variable Sources list applet, set the following fields:
Source Type = "Business Service"
Path = [BusSvcName]/[BusSvcMethod]
- In the Variable Source Parameters list applet:
- Add variable source parameters for each input argument. The variable source parameters can be a literal string or another variable value.
- Add variable source parameters for each output argument, and specify which variable to populate.
To invoke a business service to populate a child property set of the current row
- In the Variable Definitions list applet, set Type (the variable type) to
Property Set .
- In the Variable Sources list applet, set the following fields:
Source Type = "Business Service"
Path = [BusSvcName]/[BusSvcMethod]
- In the Variable Source Parameters list applet:
- Add variable source parameters for each input argument. The variable source parameters can be a literal string or another variable value.
- Add variable source parameters for each output argument and specify which variable to populate.
To populate multiple variables or child variable maps in a single method invocation
- Specify the Source and all the In/Out parameters under a single variable.
It is recommended that other variables have only a definition, no source. This reduces the burden on the Context Service because a separate call to the business service will be issued if there is a second variable having the same business service source.
NOTE: A best practice is to compare the source and source parameters from different variables to determine whether to consolidate. If the values of all these variables can be obtained through a single call to the business service, combine them and only specify the business service/method as a source under one variable. Otherwise, the same call will be issued multiple times, giving the same result each time.
|