Example ARSODF.XML files

The following example ARSODF.XML files show some of the XML elements available.

Defining default settings for email, print, and notifications

See Configuring ARSODF.XML elements for the parameterized text values available to include in the email subject line or email body content.

This portion of the ARSODF.XML is an example of some of the default settings that might be defined on a Multiplatforms server.

<?xml version="1.0" encoding="utf-8"?>
<ODFSettings>
  ...
  <TraceLevel>OFF</TraceLevel>
  <Printers>
    <Printer name="DEFAULT">
      <Command>lpr</Command>
      <Parameters>
        <Parameter arg="-P">ODFPrintQueue</Parameter>
        <Parameter arg="-S">your.print.server.company.com</Parameter>
      </Parameters>
    </Printer>
  </Printers>
  <SMTPServer>your.smtp.server.company.com</SMTPServer>
  <SSL>false</SSL>
  <From>noreply@yourcompany.com</From>
  <Threshold>500000</Threshold>
  ...
</ODFSettings>

This example is a portion of the DEFAULT_I stanza in the ARSODF.XML file that shows some of the default settings that might be defined on an IBM i server. On IBM i, ARSPRT400 should always be used for the <Command> value, and the OUTPUTQUEUE parameter name with the –o argument should always be used to specify a library name (such as QGPL in the example) and an output queue name (such as QPRINT in the example) for distributions with location type of Print. If you only need to specify one output queue for your distributions with location type of Print, no other lines should be changed in the ARSODF.XML file. If you need to customize the ODFProcessDist.java program to use multiple printer definitions, you must make one additional change. You must add multiple <Printer> elements, specifying a unique printer name for each element.

<?xml version="1.0" encoding="utf-8"?>
<ODFSettings>
  ...
  <TraceLevel>OFF</TraceLevel>
  <Printers>
    <Printer name="DEFAULT_I">
      <Command>ARSPRT400</Command>
      <Parameters>
  ...
        <Parameter name="OUTPUTQUEUE" arg="-o">QGPL/QPRINT</Parameter>
  ...
       </Parameters>
    </Printer>
  </Printers>
  <SMTPServer>your.smtp.server.company.com</SMTPServer>
  <SSL>false</SSL>
  <From>noreply@yourcompany.com</From>
  <Threshold>500000</Threshold>
  ...
</ODFSettings>

Defining default email templates for attachments

This example shows a portion of the ARSODF.XML file that defines a default email template for sending distributions as email attachments.

<?xml version="1.0" encoding="utf-8"?>
<ODFSettings>
  ...
<EmailAttachmentNotify>
    <Subject>OnDemand Distribution Facility - %email_count% of %email_total%</Subject>
    <Content><![CDATA[
      <h2>Your documents are attached for distribution: %distribution_name%</h2>
      <br/>
      %attachment_begin%
      <h3>Attachment #%attachment_number% of %attachment_size% bytes includes:</h3>
      %report_begin%
      <h3>Report Id=%report_id%, Sequence=%report_sequence%</h3>
      %report_end%
      %attachment_end%
      <br/>
      ]]>
    </Content>
  </EmailAttachmentNotify> 
  ...
</ODFSettings>