media.sdk.java.examples
Class StartMedia
java.lang.Object
media.sdk.java.examples.StartMedia
- public class StartMedia
- extends java.lang.Object
Launches the simple media server. This application reads the contents of a directory specified in parameters.
For each file found in the directory, this server:
- Creates a new interaction.
- Attached a file to the interaction.
- Submits an interaction to Interaction Server.
- Saves the interaction in UCS.
When launching this application, specify the following arguments for interaction creation:
- arg0 is the queue name to which media interactions are submitted.
- arg1 is the media type; possible values are defined in the configuration Layer as "Media Type" attribute values.
- arg2 is the interaction type for interactions to be submitted; possible values are defined in the Configuration Layer as "Interaction Type" attribute values.
- arg3 is the interaction subtype for interactions to be submitted; possible values are defined in the Configuration Layer as "Interaction subype" attribute values.
- arg4 is the source directory containing files to attach to the created interactions.
- arg5 is the save directory in which to save files whose interaction submission failed.
For instance, consider the following arguments:
RoutingWorkItem WorkItem Inbound InboundNew ./source/ ./save/
In this case, created interactions are WorkItem interactions of type Inbound, subtype InboundNew.
They are submitted to the queue RoutingWorkItem.
These interactions' attached data are obtained from the ./source directory.
Note: Each interaction contains a single file as attached data.
|
Method Summary |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StartMedia
public StartMedia()
main
public static void main(java.lang.String[] args)