<?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 = "VBScript">
              <![CDATA[
                spooler_log.info("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_api_notification"
           title = "sample for job start triggered by directory notification using the API">

          <description>
              <include file="jobs/JobSampleAPINotificationVBScript.xml"/>
          </description>

          <params>
              <param name = "output_directory"  value = "/tmp"/>
          </params>

          <script language  = "VBScript">
              <include file = "jobs/sample_api_notification.vbs"/>
          </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>


      <job name           = "sample_logparser"
           title          = "Run LogParser on Job Scheduler logs and write entries to a plain file or database">
 
          <description>
              <include file="jobs/JobSampleLogParser.xml"/>
          </description>
 
          <params>
              <!-- adjust these parameters for output to plain files -->
              <!--
              <param name="output_spec"       value="logs/sample_logparser.csv"/>
              -->
              <!-- adjust these parameters for output to a database -->
              <!--
              <param name="output_format"     value="SQLOutputFormat"/>
              <param name="output_spec"       value="SAMPLE_LOGS"/>
              <param name="output_connection" value="Driver={MySQL ODBC 3.51 Driver};SERVER=localhost;PORT=3305;DATABASE=scheduler;USER=scheduler;PASSWORD=scheduler"/>
              -->
          </params>
 
          <script language  = "VBScript">
              <include file="jobs/sample_logparser.vbs"/>
          </script>
      </job>

    </jobs>
  </config>
</spooler>