Skip to content

XML Configuration Example

Raymond Meester edited this page Sep 19, 2022 · 10 revisions

DIL Format

<dil>
    <integrations>
        <integration>
            <flows>
                <flow>
                    <id>setmessage_test1</id>
                    <name>setmessage_test1</name>
                    <type>esb</type>
                    <steps>
                        <step>
                            <id>1</id>
                            <type>source</type>
                            <uri>https://0.0.0.0:9001/1/setmessage</uri>
                        </step>
                        <step>
                            <id>2</id>
                            <type>action</type>
                            <uri>setmessage:message:names</uri>
                        </step>
						<step>
                            <id>3</id>
                            <type>sink</type>
                            <uri>velocity:The body is ${body}. The name is ${header.firstname} ${header.lastname}</uri>
                        </step>
                    </steps>
                </flow>
            </flows>
        </integration>
    </integrations>
	<core>
	   <messages>
         <message>
            <id>1</id>
            <name>names</name>
			<body>john</body>
            <headers>
               <firstname type="header" language="simple">${body}</firstname>
               <lastname type="header" language="constant">Doe</lastname>
            </headers>
         </message>
      </messages>
	</core>
</dil>

Old format (until 3.7.0)

<?xml version="1.0" encoding="UTF-8"?>
<integrations>
   <integration>
      <id>1</id>
      <name>default</name>
      <type>connector</type>
      <environmentName>Dev1</environmentName>
      <stage>DEVELOPMENT</stage>
      <defaultFromEndpointType>file</defaultFromEndpointType>
      <defaultToEndpointType>file</defaultToEndpointType>
      <defaultErrorEndpointType>file</defaultErrorEndpointType>
      <flows>
         <flow>
            <id>1</id>
            <name>FILE2HTTPS</name>
            <autostart>false</autostart>
            <maximumRedeliveries>0</maximumRedeliveries>
            <redeliveryDelay>3000</redeliveryDelay>
            <logLevel>OFF</logLevel>
            <components>
               <component>file</component>
            </components>
            <endpoints>
               <endpoint>
                  <id>1</id>
                  <type>from</type>
                  <uri>file://C:\test1</uri>
               </endpoint>
               <endpoint>
                  <id>2</id>
                  <type>to</type>
                  <uri>file://C:\test2</uri>
               </endpoint>
               <endpoint>
                  <id>3</id>
                  <type>error</type>
                  <uri>file://C:\test3</uri>
               </endpoint>
            </endpoints>
         </flow>
         <flow>
            <id>2</id>
            <name>FILE2FILE</name>
            <autostart>false</autostart>
            <maximumRedeliveries>0</maximumRedeliveries>
            <redeliveryDelay>3000</redeliveryDelay>
            <logLevel>OFF</logLevel>
            <components>
               <component>file</component>
            </components>
            <endpoints>
               <endpoint>
                  <id>4</id>
                  <type>from</type>
                 <options>
                    <directoryMustExist>true</directoryMustExist>
                 </options>
               </endpoint>
               <endpoint>
                  <id>5</id>
                  <type>to</type>
                  <uri>file://C:\test2</uri>
               </endpoint>
               <endpoint>
                  <id>6</id>
                  <type>error</type>
                  <uri>file://C:\test3</uri>
               </endpoint>
            </endpoints>
         </flow>
         <flow>
            <id>3</id>
            <name>File2Queue</name>
            <autostart>false</autostart>
            <maximumRedeliveries>0</maximumRedeliveries>
            <redeliveryDelay>3000</redeliveryDelay>
            <logLevel>OFF</logLevel>
            <components>
               <component>file</component>
            </components>
            <endpoints>
               <endpoint>
                  <id>4</id>
                  <type>from</type>
                 <options>
                    <directoryMustExist>true</directoryMustExist>
                 </options>
               </endpoint>
               <endpoint>
                  <id>5</id>
                  <type>to</type>
                  <uri>activemq:somequeue</uri>
                  <service_id>1</service_id>
               </endpoint>
               <endpoint>
                  <id>6</id>
                  <type>error</type>
                  <uri>file://C:\test3</uri>
               </endpoint>
            </endpoints>
         </flow>
      </flows>
      <services>
         <service>
            <id>1</id>
            <name>local</name>
            <type>ActiveMQ Connection</type>
            <keys>
               <url>tcp://localhost:61616</url>
            </keys>
         </service>
      </services>
      <headers>
         <header>
            <id>1</id>
            <name>myHeader</name>
            <keys>
               <Content-Type type="constant">text/xml</Content-Type>
               <Timestamp type="simple">${date:now:yyyyMMdd}</Timestamp>
            </keys>
         </header>
      </headers>
      <environmentVariables/>
   </integration>
</integrations>