Send Input Control Message
The following is an example of a control message that would  be send into the eagle_ml-2-0_default_cm_control_message stream to use the Purge and Archive feature on the box (the linked stream is eagle_ml-2-0_default_cm_purge_archive)
You will want to change the various parameters values in this example to meet your specific needs
Input Control Message Example
<EagleML xmlns="http://www.eagleinvsys.com/2011/EagleML-2-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RunTaskRequest" eaglemlVersion="2-0" xsi:schemaLocation="http://www.eagleinvsys.com/2011/EagleML-2-0 eagleml-main-2-0.xsd" eaglemlType="RunTaskRequest"> Â Â Â Â <header> Â Â Â Â Â Â Â <messageId>Purge_And_Archive_Run</messageId> Â Â Â Â Â Â Â <sentBy>http://www.client.com</sentBy> Â Â Â Â Â Â Â <sendTo>http://www.eagleinvsys.com/eagle_ml-2-0_default_cm_control_message</sendTo> Â Â Â Â Â Â Â <replyTo>http://www.client.com/Eagle Control Messages</replyTo> Â Â Â Â Â Â Â <creationTimestamp>2012-08-02T22:13:32.272-05:00</creationTimestamp> Â Â Â Â </header> Â Â Â Â <taskIdentifier> Â Â Â Â Â Â Â <correlationId correlationIdScheme="correlationIdScheme">[unique_corr_id_value]</correlationId> Â Â Â Â Â Â Â <businessTaskId correlationIdScheme="businessTaskIdScheme">[business_task_id_value]</businessTaskId> Â Â Â Â </taskIdentifier> Â Â Â Â <taskTypeEnum>NEW</taskTypeEnum> Â Â Â Â <taskParameters> Â Â Â Â Â Â Â <taskParameter> Â Â Â Â Â Â Â Â Â Â Â <name>ActionType</name> Â Â Â Â Â Â Â Â Â Â Â <dataType>S</dataType> Â Â Â Â Â Â Â Â Â Â Â <value>EXECUTE</value> Â Â Â Â Â Â Â </taskParameter> Â Â Â Â Â Â Â <taskParameter> Â Â Â Â Â Â Â Â Â Â Â <name>StreamName</name> Â Â Â Â Â Â Â Â Â Â Â <dataType>S</dataType> Â Â Â Â Â Â Â Â Â Â Â <value>eagle_ml-2-0_default_cm_purge_archive</value> Â Â Â Â Â Â Â </taskParameter> Â Â Â Â Â Â Â <taskParameter> Â Â Â Â Â Â Â Â Â Â Â <name>PurgeArchiveParams</name> Â Â Â Â Â Â Â Â Â Â Â <dataType>S</dataType> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <value> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â FILE;ALLMCSTREAMFOLDERS;processing;*;ARCHIVE;data/msgcenter/cmw/custom_ack/;N;72| Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â FTP;FOLDER;CMW/inbound_tst;*;PURGE;;;0| Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </value> Â Â Â Â Â Â Â </taskParameter> Â Â Â Â Â Â Â Â Â Â <taskParameter> Â Â Â Â Â Â Â Â Â Â Â <name>PurgeArchiveMode</name> Â Â Â Â Â Â Â Â Â Â Â <dataType>S</dataType> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <value> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â LISTONLY Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </value> Â Â Â Â Â Â Â </taskParameter> Â Â Â Â </taskParameters> </EagleML>
The PurgeArchiveParams taskParameter node value sets the parameters for Purge and Archive.
The PurgeArchiveMode taskTarameter node value defines the mode of Purge and Archive.