Cisco Cisco Computer Telephony Integration Option 8.5 Reference Guide

Page of 152
 
A-11
Cisco ICM Software CTI Driver for Siebel 7 Reference Guide Release 6.0(0)
 
Appendix A      Business Service Script
Sample Script
//
// Preconditions: strText is a valid text string.
//    bRaiseError is a boolean value (either true or false.)
//
// Postconditions: If the Communications Client business
//    service is available, then this function has called
//    its method ShowStatusText, passing it the string
//    argument as the text to be displayed.  The function
//    will return a boolean "true" value in this case.
//
//    If the business service is not available, or if
//
  any other error occurs, the function will either
//    call RaiseErrorText with strText as its argument
//    (if bRaiseError is true) or will do nothing and
//    return a boolean "false" value (if bRaiseError
//    is false.)
var retVal = true;
// try {
var bsCommClient = TheApplication( ).GetService("Communications Client");
if (bsCommClient == null)
{
retVal = false;
}
else
{
var psInputs  = TheApplication( ).NewPropertySet( );
var psOutputs = TheApplication( ).NewPropertySet( );
psInputs.SetProperty("Text", strText);
bsCommClient.InvokeMethod("ShowStatusText", psInputs, psOutputs);
psOutputs = null;
psInputs = null;
bsCommClient = null;
retVal = true;
}
/*
}
catch(e)
{
retVal = false;
}
finally
{
*/