Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Service Events > Service_InvokeMethod EventThe InvokeMethod event is called after the InvokeMethod method is called on a business service. Server Script SyntaxService_InvokeMethod(MethodName, InputArguments, OutputArguments)
Browser Script SyntaxOutputArguments=oService.InvokeMethod(methodName, InputArguments) ReturnsUsageAlthough this event does not return a value, in Server Script it can add properties to, or alter the values of the properties in, the property set OutputArguments. In Browser Script it cannot add to, store, or update the values of the properties in the output property set. When you invoke business service methods through Browser Script, the business service can be implemented as a browser-based business service (written in JavaScript) or a server-based business service. Initially, the high interactivity mode framework checks if the business service resides in the browser, and if it does not find it, it sends the request to the server for execution. NOTE: Browser Script can invoke a browser-based or server-based business service, but Server Script can only invoke a server-based business service. NOTE: Although the InvokeMethod function does not return a value in Server Script, it can modify the properties in the OutputArguments property set. Used WithExampleThis eScript example adds custom logic to a standard business service, Credit Card Transaction Service, for handling transactions that are not approved. function Service_InvokeMethod (MethodName, Inputs, Outputs) if (Outputs.GetProperty("SiebelResponseMessage") != "Approved") // special handling for failed txns here Related Topic |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |