RAW: Difference between revisions

From Commander4j
No edit summary
 
Line 11: Line 11:
'''config.xml'''
'''config.xml'''
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
    <map id="map427" enabled="Y" description="GEN RAW Copy File Only">
      <map>
        <input id="in1" description="Read RAW Input">
        <id>Map07</id>
            <type>RAW</type>
        <enabled>true</enabled>
            <path>./interface/input/427 (GEN Copy)</path>
        <description>RAW File Copy</description>
            <mask/>
        <enableEmailNotifications>true</enableEmailNotifications>
            <pollingInterval>5000</pollingInterval>
        <connectors>
            <XSLT/>
            <input>
        </input>
              <id>in1</id>
        <output id="out1" enabled="Y" description="Write Copy 1 and 2">
              <description>Read RAW Input</description>
            <path>./interface/output/427 (GEN Copy 1);./interface/output/427 (GEN Copy 2)</path>
              <type>RAW</type>
            <type>RAW</type>
              <url>
             <XSLT/>
                  <path>./interface/input/Map07 RAW to RAW</path>
        </output>
                  <mask/>
    </map>
                  <prefix/>
                  <pollingInterval>5000</pollingInterval>
              </url>
            </input>
            <output>
              <id>out1</id>
              <enabled>true</enabled>
              <description>Write RAW Output</description>
              <type>RAW</type>
              <url>
                  <path>./interface/output/Map07 RAW to RAW Copy 1;./interface/output/Map07 RAW to RAW Copy 2</path>
                  <prefix/>
                  <fileExtension/>
                  <use83GUID>false</use83GUID>
              </url>
             </output>
        </connectors>
      </map>
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 15:35, 30 December 2024

The RAW connector is special. It's provided to enable the middleware to copy/move files without any kind of modification or interpretation. This is more efficent than using a different kind of connector.

The other connectors will load the input file and convert into a XML representation so you can apply XSL transformations and convert into different file formats. This has a memory and cpu overhead.

The RAW connector bypasses this step and just moves the file.

You might to this if you want to poll and remote file share and move files to a local folder for import into an application without modification.

RAW Map Configuration

config.xml

      <map>
         <id>Map07</id>
         <enabled>true</enabled>
         <description>RAW File Copy</description>
         <enableEmailNotifications>true</enableEmailNotifications>
         <connectors>
            <input>
               <id>in1</id>
               <description>Read RAW Input</description>
               <type>RAW</type>
               <url>
                  <path>./interface/input/Map07 RAW to RAW</path>
                  <mask/>
                  <prefix/>
                  <pollingInterval>5000</pollingInterval>
               </url>
            </input>
            <output>
               <id>out1</id>
               <enabled>true</enabled>
               <description>Write RAW Output</description>
               <type>RAW</type>
               <url>
                  <path>./interface/output/Map07 RAW to RAW Copy 1;./interface/output/Map07 RAW to RAW Copy 2</path>
                  <prefix/>
                  <fileExtension/>
                  <use83GUID>false</use83GUID>
               </url>
            </output>
         </connectors>
      </map>