Bookshelf Home | Contents | Index | Search | PDF |
Siebel Marketing Guide > Administering Siebel Real-Time Marketing > Configuring the Decision Broker Business Service—Advanced >
Invoke Business Service Using Siebel eScript—Example
This example covers invoking the Decision Broker business service from Siebel eScript. An example business service is defined in eScript and it will be used to invoke the Decision Broker business service. Both methods (ExecuteDecision and getSqlStmt) of the Decision Broker Service are shown as part of the example. For detailed instructions about how to use Siebel eScript, see Siebel Tools Reference.
Write a business service using eScript that will call the Decision Broker Business Service as part of its operations. The following example describes the process:
Add a business service. In the Business Service Administration screen, select Details from the Show drop-down list. In the Business Service list, add a new business service and save the record.
- Add an eScripts record. In the Business Service Administration screen, select Scripts from the Show drop-down list, and create a new record. In the Business Service Scripts form, select Service_PreInvokeMethod as the Name and eScript as the Programming Language.
- Add your custom eScript code. In the Business Service Scripts workspace, add your custom eScript code. Make sure that you save the script so that the simulator for the test will run successfully. If you do not save the script, errors such as Method Not Supported will appear.
- Add two methods. From the Show drop-down list, select Methods. In the Methods list, add two new methods as shown in the following list:
- Type test_ExecuteDecision as the method name and save the record.
- Type test_getSqlStmt as the method name and save the record.
- Test your new eScript based business service.
- Go to the Business Service Simulator view. In the Service Methods list, add a service for test. Select the name of your Business Service and select test_ExecuteDecision in the Method Name field.
- (Optional) because a default decision name is set as MyTest exists in the business service. In the Input Property Set list, add a new record. Set the Property Name to Decision and set the Property Value to a decision name such as MyTest.
- In the Service Methods list, click Run.
- You should see the results in the Output Property Set list.
- Repeat this test process for test_getSqlStmt method, if needed.
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Marketing Guide, Version 7.5, Rev. A Published: 18 April 2003 |