<?xml version="1.0" encoding="iso-8859-1"?>
<spooler>
  <config>
    <jobs>

      <!-- This job simply says "hello world" -->
      <job name  = "sample_hello_world"
           title = "sample to say hello world">

          <description>
            <include file = "jobs/JobSampleHelloWorld.xml"/>
          </description>

          <script language="PerlScript">
            <![CDATA[
              print("hello world");
            ]]>
          </script>
      </job>


      <!-- This job is started when a file is inserted or modified in a directory that matches the given pattern -->
      <job name  = "sample_script_notification"
           title = "sample for job start triggered by directory notification">

          <description>
              <include file="jobs/JobSampleScriptNotification.xml"/>
          </description>

          <process file     = "/Perl/bin/perl.exe"
                   param    = "./jobs/sample_script_notification.pl"
                   log_file = "./logs/sample_script_notification.log"/>

          <start_when_directory_changed directory = "/tmp/input.script" regex = ".*"/>
      </job>


      <!-- This job is started when a file is inserted or modified in a directory that matches the given pattern -->
      <job name  = "sample_api_notification"
           title = "sample for job start triggered by directory notification using the API">

          <description>
              <include file="jobs/JobSampleAPINotificationPerlScript.xml"/>
          </description>

          <params>
              <param name = "output_directory"   value = "/tmp"/>
          </params>

          <script language  = "PerlScript">
              <include file = "jobs/sample_api_notification.pl"/>
          </script>

          <start_when_directory_changed directory = "/tmp/input.api"  regex = ".*"/>

          <delay_after_error error_count = "1" delay = "00:05"/>
          <delay_after_error error_count = "3" delay = "01:00"/>
          <delay_after_error error_count = "5" delay = "stop"/>
      </job>

    </jobs>
  </config>
</spooler>
