Agent Interaction SDK 7.6 Java Code Examples
Any authorized distribution of any copy of this code (including any related documentation) must reproduce the following restrictions, disclaimer and copyright notice:
The Genesys name, trademarks and/or logo(s) of Genesys shall not be used to name (even as a part of another name), endorse and/or promote products derived from this code without prior written permission from Genesys Telecommunications Laboratories, Inc.
The use, copy, and/or distribution of this code is subject to the terms of the Genesys Developer License Agreement. This code shall not be used, copied, and/or distributed under any other license agreement.
THIS CODE IS PROVIDED BY GENESYS TELECOMMUNICATIONS LABORATORIES, INC. (“GENESYS”) “AS IS” WITHOUT ANY WARRANTY OF ANY KIND. GENESYS HEREBY DISCLAIMS ALL EXPRESS, IMPLIED, OR STATUTORY CONDITIONS, REPRESENTATIONS AND WARRANTIES WITH RESPECT TO THIS CODE (OR ANY PART THEREOF), INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. GENESYS AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR ANY DAMAGE SUFFERED AS A RESULT OF USING THIS CODE. IN NO EVENT SHALL GENESYS AND ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, ECONOMIC, INCIDENTAL, OR SPECIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ANY LOST REVENUES OR PROFITS).
Copyright © 2007-2008 Genesys Telecommunications Laboratories, Inc. All rights reserved.
For more information on these examples, consult Agent Interaction SDK 7.6 Java Developer’s Guide.
Table of Contents
Introduction
The Agent Interaction SDK (Java) code examples show you how to carry out many of the most common agent-related functions of the Interaction SDK. These examples are based on an integrated graphical user interface that is used to run examples for voice, chat, e-mail, and open media.
For more information about the examples,
click here.
Setup
You must install the following components and media:
- JDK 1.3 or higher
- Agent Interaction SDK
.jar
s
- A Genesys suite, including Genesys Interaction Server and
optionally including an Internet Suite
- Set the
JAVA_HOME
environment variable to
the location of your JDK.
- Expand the
76sdk_exmpl_ixn_java-agent
archive file containing the code
examples.
- Set the configuration properties in the
AgentInteraction.properties
file. You can define these properties in the Configuration Layer.
- Set the location of your AIL
.jar
files in the compile.bat
and compile.sh
files. Replace the
<location of AIL .jar files>
placeholder text with the appropriate path.
- Compile the code examples, in the following order:
- AgentInteractionData
- OpenMediaTableModel
- AgentInteractionGui
- SimpleConnector
- SimplePlace
- SimpleVoiceInteraction
- MultipartyVoiceInteraction
- SimpleEmailInteraction
- SimpleOpenMediaInteraction
- SimpleChatInteraction
- Set the location of your AIL
.jar
files in the compileOutbound.bat
and compileOutbound.sh
files. Replace the
<location of AIL .jar files>
placeholder text with the appropriate path.
- Compile the outbound code examples, in the following order:
- AgentOutboundGui.java
- CampaignAdapter.java
- PlaceAdapterForOutbound.java
- VoiceInteractionAdapterForOutbound.java
- AgentOutboundExample.java
- In the
go.bat
, go.sh
, goOutbound.bat
, goOutbound.sh
files, set the location of your AIL .jar
files.
Replace the <location of AIL .jar files>
placeholder text with the appropriate path.
- Edit the
AgentInteraction.properties
file to match your
configuration data. The properties in this file must match
objects that already exist in the configuration layer.
Otherwise, your examples will not work.
To run the examples, type go <Example name>
.
To run the outbound examples, type goOutbound <Example name>
.