com.genesyslab.omsdk.mil.applicationblocks.mediaserver.ixn
Class HandlingInteractions

java.lang.Object
  extended bycom.genesyslab.omsdk.mil.applicationblocks.mediaserver.ixn.HandlingInteractions

public class HandlingInteractions
extends java.lang.Object

Shows how to handle interactions in Interaction Server.


Constructor Summary
HandlingInteractions()
           
 
Method Summary
 void changeProperties(java.lang.String ID, java.util.Map removedProperties, java.util.Map changedProperties)
          Changes properties of an interaction.
 void changePropertiesAsync(java.lang.String ID, java.util.Map removedProperties, java.util.Map changedProperties)
          Changes properties of an interaction asynchronously.
 void saveInteraction(java.lang.String type, java.lang.String subtype, java.lang.String mediatype, java.lang.String externalID, java.lang.String ID, java.lang.String queueName)
          Creates and saves interactions.
 void saveInteractionAsync(java.lang.String type, java.lang.String subtype, java.lang.String mediatype, java.lang.String externalID, java.lang.String ID, java.lang.String queueName)
          Creates and saves interactions asynchronously.
 void stopInteraction(java.lang.String ID, int stopReasonCode, java.lang.String stopReasonName, java.lang.String stopReasonDescription)
          Stops an interaction.
 void stopInteractionAsync(java.lang.String ID, int stopReasonCode, java.lang.String stopReasonName, java.lang.String stopReasonDescription)
          Stops interactions asynchronously.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlingInteractions

public HandlingInteractions()
Method Detail

saveInteraction

public void saveInteraction(java.lang.String type,
                            java.lang.String subtype,
                            java.lang.String mediatype,
                            java.lang.String externalID,
                            java.lang.String ID,
                            java.lang.String queueName)
                     throws MILRequestFailedException
Creates and saves interactions.

Parameters:
type - interaction type.
subtype - interaction subtype.
mediatype - interaction mediatype.
externalID - external id of an interaction, can be null.
ID - desired id of an interaction, can be null.
queueName - name of a queue.
Throws:
MILRequestFailedException - exception can be raised on interaction submit phase.

stopInteraction

public void stopInteraction(java.lang.String ID,
                            int stopReasonCode,
                            java.lang.String stopReasonName,
                            java.lang.String stopReasonDescription)
                     throws MILRequestFailedException
Stops an interaction.

Parameters:
ID -
stopReasonCode -
stopReasonName -
stopReasonDescription -
Throws:
MILRequestFailedException

changeProperties

public void changeProperties(java.lang.String ID,
                             java.util.Map removedProperties,
                             java.util.Map changedProperties)
                      throws MILRequestFailedException
Changes properties of an interaction.

Parameters:
ID -
removedProperties - map of properties to be removed.
changedProperties - map of properties to be changed. Note, you must use this parameter if you want to add a property.
Throws:
MILRequestFailedException

saveInteractionAsync

public void saveInteractionAsync(java.lang.String type,
                                 java.lang.String subtype,
                                 java.lang.String mediatype,
                                 java.lang.String externalID,
                                 java.lang.String ID,
                                 java.lang.String queueName)
                          throws MILRequestFailedException
Creates and saves interactions asynchronously.

Parameters:
type -
subtype -
mediatype -
externalID -
ID -
queueName - name of a queue
Throws:
MILRequestFailedException

stopInteractionAsync

public void stopInteractionAsync(java.lang.String ID,
                                 int stopReasonCode,
                                 java.lang.String stopReasonName,
                                 java.lang.String stopReasonDescription)
                          throws MILRequestFailedException
Stops interactions asynchronously.

Parameters:
ID -
stopReasonCode -
stopReasonName -
stopReasonDescription -
Throws:
MILRequestFailedException

changePropertiesAsync

public void changePropertiesAsync(java.lang.String ID,
                                  java.util.Map removedProperties,
                                  java.util.Map changedProperties)
                           throws MILRequestFailedException
Changes properties of an interaction asynchronously.

Parameters:
ID -
removedProperties - map of properties to be removed
changedProperties - map of properties to be changed. Note, you must use this parameter if you want to add a property.
Throws:
MILRequestFailedException