The Java CTICisco Application Programming Interface (API) is accessed through the Java class CTICiscoICM. To access a Java environment from which to call the methods, it is necessary to use the eventToCode bean. A DTConnectionItem is needed for the call.
DTConnectionItem myConnectionItem = (DTConnectionItem) myActionStatusEvent.getConnectionItem();
CTICiscoICM icm = new CTICiscoICM (myConnectionItem); CTICiscoReturn ret; // Issue an 'eventReport' to the ICM Integer MyEventCode = New Integer(7); // An example eventCode to use ret = icm.eventReport (MyEventCode, null); // NOTE: Passing in 'null' for optional parms if not required // Check the returned status equals zero Integer Status = ret.getStatus(); if (!(Status.equals (New Integer(0)))) { // Something has gone wrong! Return the value of status return Status; } // Continue with next Cisco method.....