Control Message - Example Scenario 6
Scenario Task
Show in log file information about files and actions on them before run Purge And Archive in STANDARD mode.
Initial Control Message
<EagleML 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>TEST_PurgeAndArchive_ID</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">TEST_PurgeAndArchive_25</correlationId>
<businessTaskId correlationIdScheme="businessTaskIdScheme">TEST_PurgeAndArchive_BTI</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>FTP;FOLDER;CMW/inbound/tst;*;ARCHIVE;data/msgcenter/ftp_archive;Y;0| </value>
</taskParameter>
<taskParameter>
<name> PurgeArchiveMode </name>
<dataType>S</dataType>
<value>LISTONLY</value>
</taskParameter>
</taskParameters>
</EagleML>
W_PA_SETTINGS Variable in w_custom_config.inc
<!-- Purge And Archive Settings -->
<COL TAG="W_PA_SETTINGS" EXPRESSION="'FILE;FOLDER;cmw/custom_ack;*.csv;PURGE;;;0|
FILE;FOLDER;cmw/custom_ack;*.xml;ARCHIVE;data/msgcenter/custom_archive;N;0'"/>
<COL TAG="W_PA_SETTINGS_LOG_FILE_PATH" EXPRESSION="GetDirRoot()+ 'logs/msgcenter/purgeandarchive/pa_log.log'"/>
Parameters set in the CM have higher priority than the W_PA_SETTINGS global value. Path to log file is default.