Siebel Object Interfaces Reference > Interfaces Reference > Business Service Events >

Service_InvokeMethod Event


The InvokeMethod event is called after the InvokeMethod method is called on a business service.

Server Script Syntax

Service_InvokeMethod(MethodName, InputArguments, OutputArguments)

Argument
Description

MethodName

A string representing the name of the method to execute

InputArguments

A property set containing the arguments required by the method

OutputArguments

A property set containing the arguments to be returned by the method

Browser Script Syntax

OutputArguments=oService.InvokeMethod(methodName, InputArguments)

Argument
Description

methodName

A string representing the name of the method to execute

InputArguments

A property set containing the arguments required by the method

OutputArguments

A property set containing the arguments to be returned by the method.

NOTE:  In Browser Script, output property sets are not supported for this event.

Returns

Not applicable

Usage

Although 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 With

Browser Script, Server Script

Example

This 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

Service_PreInvokeMethod Event

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.