Maps

From Commander4j

A map in simple terms is a configuration which defines what you want the middleware to take as input and what you want it to generate as output.

The middleware can handle multiple maps and each map can have 1 inbound connection and multiple outbound connections.

The configuration for maps is within an xml file called config.xml

An example of a map is shown below. In this example the system is configured to read an xml file and write the data out to 2 files, one ASCII (flat file) and one CSV (Comma separated variables file).

    <map id="map413" enabled="Y"
        description="GEN C4J Prod Dec XML to Dual Output (ASCII and CSV Files)">
        <input id="in1" description="Read XML File">
            <type>XML</type>
            <path>./interface/input/413 (GEN XML to Dual Output)</path>
            <mask/>
            <pollingInterval>1000</pollingInterval>
            <XSLT/>
        </input>
        <output id="out1" enabled="Y" description="Write ASCII File">
            <path>./interface/output/413 (GEN Dual Output ASCII and CSV)</path>
            <type>ASCII</type>
            <outputPattern>1-10,12-21,23-32</outputPattern>
            <outputFileExtension>txt</outputFileExtension>
            <XSLT>C4J_PRODDEC_XML_to_ASCII_Flat_File.xsl</XSLT>
        </output>
        <output id="out2" enabled="Y" description="Write CSV">
            <path>./interface/output/413 (GEN Dual Output ASCII and CSV)</path>
            <type>CSV</type>
            <optionDelimeter>^</optionDelimeter>
            <csvOptions>separator=,^quote=""</csvOptions>
            <outputFileExtension>csv</outputFileExtension>
            <XSLT>C4J_PRODDEC_XML_to_SAGEX3_GoodsReceipt_CSV.xsl</XSLT>
        </output>
    </map>

Refer to Example Configuration for a overview of how maps and connectors work.