|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface KwService
Provides Knowledge Worker Service.
To get an instance of the KwService interface, call the AilFactory.getKwService() method, as shown in the following code snippet.
KwService myKwService = myAilFactory.getKwService();
If the expert receives a direct call, your application can use the KwService interface
to create an interaction on the CTI-Less DN by calling the onCall(com.genesyslab.ail.Dn) method.
Otherwise, call the getContext(com.genesyslab.ail.Interaction) to access the expert context associated with an interaction (if any).
For example, do this when your application receives an InteractionEvent event, as shown in the following
code snippet:
public class KwExample implements PlaceListener
{
public void handleInteractionEvent(InteractionEvent event)
{
Interaction interaction = event.getInteraction();
//Getting the associated expert context (if any)
KwInteractionContext kwInteractionContext = myKwService.getContext(interaction);
//...
}
//...
}
KwInteractionContext| Method Summary | |
|---|---|
KwInteractionContext |
getContext(Interaction interaction)
Gets the KwInteractionContext associated with this interaction if it is a Knowledge Worker interaction. |
void |
onCall(Dn dn)
Tells the CTI-less T-Server that the agent is in communication. |
| Method Detail |
|---|
void onCall(Dn dn)
throws RequestFailedException
dn - a DN on a
KNOWLEDGE_WORKER switch.
RequestFailedException - if the request failed.KwInteractionContext getContext(Interaction interaction)
interaction - a regular interaction like
InteractionVoice.
null otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||