Siebel CTI Administration Guide > Configuring Advanced Communications Features > Using Business Services with Siebel Communications Server >

Invoking a Business Service Method from an Event Handler


You can create or modify an event handler in the communications configuration to specify a Siebel business service and method to be invoked. The business service method returns data to determine whether this event handler matches. In addition, it can perform other functions that the customer might want.

To configure this, you use the event parameters ServiceMethod and ServiceParam to specify the name of the business service and method to invoke and to specify argument names and values to pass to the business service method. For more information about using these event parameters, see Event Handlers.

In the example shown in Table 39, Communications Server invokes the method MyMethod of the business service MyService and passes arguments attribute1 and attribute2 to the method, using the values of the ServiceParam.Param1 and ServiceParam.Param2 parameters.

Table 39. Event Handler: OnInboundCallReceived
Parameter Name
Parameter Value

ServiceMethod

MyService.MyMethod

ServiceParam.Param1

{attribute1}

ServiceParam.Param2

{attribute1}

The example event handler has the Device Event field set to the appropriate device event for the driver, such as an InboundCall event.

You can use the ServiceMethod and ServiceParam parameters to supplement or replace filter mechanisms using the Filter or FilterSpec parameters. You can also use this method to execute custom code before executing a specified event response. The business method must set a parameter of Result to a value 1 or 0 (or True or False):

  • 1 (True) indicates that this event handler matches and is executed, and the associated event response is executed.
  • 0 (False) invalidates this event handler; the next event handler is then evaluated.
Siebel CTI Administration Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.