Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Application Methods > GetService MethodThe GetService method returns a specified business service. If the business service is not already running, it is constructed. SyntaxApplication.GetService(serviceName) ReturnsA reference to the requested business service UsageThis method finds the business service indicated by serviceName; it constructs the service if it is not already running. It first searches through the built-in services that are stored in the repository. If the business service is not found, GetService searches through services defined in the run-time Business Services table. A business service is normally deleted from memory as soon as every reference to it, such as local or global variables, is cleared by setting it to another value. However, if the Cache flag on the business service is set, the service remains in memory as long as the Siebel application is running. To invoke a business service using the Web Client Automation Server and Browser Script, the business service must first be registered in Siebel Tools as an application user property. This prevents Service Not Found errors. To register a business service
Used WithBrowser Script, COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script, Web Client Automation Server ExamplesThe following examples instantiate a business service named Workflow Process Manager. The following example is in Browser Script: function Applet_PreInvokeMethod (name, inputPropSet) The following example is in Siebel eScript: function WebApplet_PreInvokeMethod (MethodName) The following example is in Siebel VB: Function WebApplet_PreInvokeMethod (MethodName As String) As Integer |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |