com.genesyslab.ail
Interface KwService


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);
        //...
    }
    //...
}

See Also:
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

onCall

void onCall(Dn dn)
            throws RequestFailedException
Tells the CTI-less T-Server that the agent is in communication.

Parameters:
dn - a DN on a KNOWLEDGE_WORKER switch.
Throws:
RequestFailedException - if the request failed.

getContext

KwInteractionContext getContext(Interaction interaction)
Gets the KwInteractionContext associated with this interaction if it is a Knowledge Worker interaction. This object provides you some new methods and controls that are Knowledge Worker specific.

Parameters:
interaction - a regular interaction like InteractionVoice.
Returns:
a KwInteractionContext if the interaction resides on a CTI-Less T-Server. null otherwise.