EagleML Validation stream allows the user to check if the content and structure of certain EagleML data files follow the EagleML XSD.
...
Expand |
---|
title | Click to see an example of CM |
---|
|
Code Block |
---|
| <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>B80KIP64IJ7WGOQX</messageId>
<sentBy>http://www.eagleinvsys.com</sentBy>
<sendTo>http://www.eagleinvsys.com</sendTo>
</header>
<taskIdentifier>
<correlationId>XSD_validation_001<validation</correlationId>
<businessTaskId>VALIDATION<businessTaskId>XSD_2018<VALIDATION</businessTaskId>
<sequenceNumber/>
</taskIdentifier>
<taskTypeEnum>LOAD</taskTypeEnum>
<synchronousExecution>no</synchronousExecution>
<taskParameters>
<taskParameter>
<name>StreamName</name>
<dataType>S</dataType>
<value>eagle_ml-2-0_default_cm_validate_by_xsd</value>
</taskParameter>
<taskParameter>
<name>XSDValidationType</name>
<dataType>S</dataType>
<value>SAX</value>
</taskParameter>
<taskParameter>
<name>SourceFolder</name>
<dataType>S</dataType>
<value>data/msgcenter/mytest/myfiles/</value>
</taskParameter>
</taskParameters>
</EagleML> |
|
3. Check available options and make required edits in configure your CM
Parameter Name | Required/ Optional | Valid Values | Example of Use | Comment |
---|
StreamName | Required | eagle_ml-2-0_default_cm_validate_by_xsd | Stream used for validation |
XSDValidationType | Required | XMLLINT, SAX, ALL | SAX | Validation type, XMLLINT, SAX or both |
SourceFolder | Required | relative path | data/msgcenter/mytest/myfiles/ | Path to the folder with files to be validated |
XSDShemaPath | Optional | relative path | data/msgcenter/mytest/myXSD/ | Path to the folder with a custom XML schema in case you do not want to use default environment schema |
4. Send the CM to eagle_ml-2-0_default_cm_control_message stream
Understanding Validation Results
When validation is complete, you can check its results right in the console
Image Modified
There is also a detailed report generated in the cmw_staging_folder folder, we highly recommend referring to it even if console information seems sufficient.
...