Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The file with the query is selected by the -file command, for example:

-file="C:\Users\User\Documents\my_config.txt"

It should be formatted as follows:
basecorrid|businesstaskid|TaskParam;TaskValue;TaskParam;TaskValue;

For example:

ENTITYEXTRACT|ENTITYEXTRACT|ActionType; EXTRACT; StreamName; eagle_ml-2-0_default_out_q; FeedType; ENTITYEXTRACT; maxrows; 50;
ENTITYEXTRACT|ENTITYEXTRACT|ActionType; EXTRACT; StreamName; eagle_ml-2-0_default_out_q; FeedType; ENTITYEXTRACT; maxrows; 50;

Each line will trigger an RTR for extract, for example:

 Example RTR (click to expand)
<EagleML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RunTaskRequest">
    <header>
        <messageId>IDROKER002</messageId>
        <sentBy>user</sentBy>
        <sendTo>http://www.eagleinvsys.com/eagle_ml-2-0_default_cm_control_message</sendTo>
        <creationTimestamp>2015-08-27T17:22:40.692+02:00</creationTimestamp>
    </header>
    <taskIdentifier>
        <correlationId correlationIdScheme="correlationIdScheme">ENTITYEXTRACT_61CBI00AF8GLOJQ</correlationId>
        <businessTaskId correlationIdScheme="businessTaskIdScheme">ENTITYEXTRACT_61CBI00AF8GLOJQ</businessTaskId>
    </taskIdentifier>
    <taskParameters>
        <taskParameter>
            <name>ActionType</name>
            <value>EXTRACT</value>
        </taskParameter>
        <taskParameter>
            <name>StreamName</name>
            <value>eagle_ml-2-0_default_out_q</value>
        </taskParameter>
        <taskParameter>
            <name>FeedType</name>
            <value>ENTITYEXTRACT</value>
        </taskParameter>
        <taskParameter>
            <name>maxrows</name>
            <value>5</value>
        </taskParameter>
    </taskParameters>
</EagleML>

To add more task parameters, you should specify them in the following format:

parameterName;parameterValue

For example,

fromdate;2015-12-12;

will go for

<taskParameter>
    <name>fromdate</name>
    <value>2015-12-12</value>
</taskParameter> 
  • No labels