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 VB Script—Example
This example covers invoking the Decision Broker business service from VB script. For detailed instructions about how to use Siebel VB Script, see Siebel Tools Reference.
Create a new business service and write a VB Script 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 a VB Scripts record. From the Show drop-down list, select Scripts. and create a new record. In the Business Service Scripts form, select Service_PreInvokeMethod as the Name and Siebel VB as the Programming Language.
- Add custom VB code. In the Business Service Scripts workspace, add your custom VB code, click Check Syntax, and correct any errors. 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 VB-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 in the Service Name field and select test_ExecuteDecision in the Method Name field.
- (Optional because a default decision name is set as Test Decision 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 Test Decision.
- 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 Published: 23 June 2003 |