Bookshelf Home | Contents | Index | PDF |
Using Siebel Tools > Using Siebel Script Editors > Using the ST eScript Engine > Using Script Libraries with the ST eScript EngineA script library is a part of the ST eScript Engine that allows you to call a business service method from a script. This topic describes how to make a custom business service method available to a business service script library and how to call this method in the script library. Using a script library is optional. Siebel CRM supports code you write before Siebel CRM version 8.0. For more information about script libraries, see Siebel eScript Language Reference. Making a Custom Business Service Method Available in a Script LibraryThis topic describes how to make a custom business service method available in a script library. To make a custom business service method available in a script library
Using a Script Library to Call a Custom Business Service MethodAfter you make a business service available for use in Siebel Tools, the following items apply:
To use a script library to call a custom business service method
Example of Using a Script LibraryIn this example, the mathService business service is enabled for use in Siebel Tools. It uses a business service method named square: function square (x) If you use a script library to call an argument, then the compiler examines the argument types to make sure the argument that your script calls is valid and is compatible. The following code calls a business service method named square: var oBS: Service = TheApplication().GetService ("mathService"); Figure 6 displays a list of the business service methods that are available for the mathService script library. This list displays the following code: |
Using Siebel Tools | Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |