Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel Object Interfaces Reference > Siebel Object Interfaces Reference > Object Interfaces Reference > Business Service EventsThis topic describes business service events. It includes the following topics: Service_InvokeMethod EventSiebel CRM calls the Service_InvokeMethod event after it calls the InvokeMethod method on a business service. This event does not return any information. For more information, see Service_PreInvokeMethod Event. Server Script FormatService_InvokeMethod(MethodName, InputArguments, OutputArguments) The arguments you can use in this format are the same as the arguments that are described in Table 84. Browser Script FormatOutputArguments=oService.InvokeMethod(methodName, InputArguments) Table 88 describes the arguments for the Browser Script format of the Service_InvokeMethod Event In Browser Script, you cannot use an output property set for this format. UsageYou can use this event in the following ways:
If you call a business service method through Browser Script, then the business service that this method calls can use a browser or the Siebel Server. For high interactivity mode, Siebel CRM determines if the business service resides in the browser. If the business service does not reside in the browser, then it sends the request to the Siebel Server. Browser Script can call a business service on the browser or the Siebel Server. Server Script can call only a business service on the Siebel Server. Used WithExamplesTo handle transactions that are not approved, the following example in Siebel eScript adds custom logic to the predefined Credit Card Transaction Service business service: function Service_InvokeMethod (MethodName, Inputs, Outputs) if (Outputs.GetProperty("SiebelResponseMessage") != "Approved") // special handling for failed transactions here Service_PreCanInvokeMethod EventSiebel CRM calls the Service_PreCanInvokeMethod event before it calls the PreInvokeMethod event. This configuration allows you to determine if the user possesses the authority to call a business service method. This method returns CancelOperation or ContinueOperation. For more information, see Caution About Using the Cancel Operation Event Handler. Server Script FormatService_PreCanInvokeMethod(MethodName, &CanInvoke) Table 89 describes the arguments for the Server Script format of the Service_PreCanInvokeMethod event. Browser Script FormatService_PreCanInvokeMethod(MethodName) The arguments you can use with this format are the same as the arguments described in Table 26. Used WithService_PreInvokeMethod EventSiebel CRM calls the Service_PreInvokeMethod event before it calls a specialized method on a business service. For more information, see About Specialized and Custom Methods and Service_InvokeMethod Event. This method returns ContinueOperation or CancelOperation. For more information, see Caution About Using the Cancel Operation Event Handler. Server Script FormatService_PreInvokeMethod(MethodName, InputArguments, OutputArguments) The arguments you can use in this format are the same as the arguments that are described in Table 84. Browser Script FormatService_PreInvokeMethod(name, inputPropSet) The arguments you can use in this format are the same as the arguments that are described in Table 25. Usage with Server ScriptSiebel CRM uses the Server Script version of the Service_PreInvokeMethod event to perform the following work:
Usage with Browser ScriptSiebel CRM uses the Browser Script version of the Service_PreInvokeMethod event to perform the following work:
The Browser Script version is not intended to perform business logic. It does not return an output property set. How Siebel CRM Handles a Predefined Business Service MethodFigure 6 illustrates how Siebel CRM handles a predefined business service method. With a predefined business service method, the script can do the following:
How Siebel CRM Handles a Custom Business Service MethodFigure 7 illustrates how Siebel CRM handles a custom business service method. With a custom business service method, the script can do the following:
For more information, see Caution About Using the Cancel Operation Event Handler. Used WithExamplesThe following Siebel VB example sets properties in the custom Shipping Engine business service: Function Service_PreInvokeMethod (MethodName As String, Inputs As PropertySet, Outputs As PropertySet) As Integer If MethodName = "CalculateShipping" Then Dim sShipper As String, sShipMethod As String iReturn = ContinueOperation Select Case sShipper Case "Airline" Case "Ground" sCost = Format(dCost, "Currency") |
![]() ![]() |
Siebel Object Interfaces Reference | Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |