Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1681

Global parameters from scheduler.xml should be available even if a pre processing script is defined

    XMLWordPrintable

Details

    Description

      Current Situation

      Parameters that are defined in the scheduler.xml configuration file can be used in jobs.

      Assuming there is a parameter test in the file scheduler.xml

      <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
      <?xml-stylesheet type="text/xsl" href="scheduler_documentation.xsl" ?>
      <spooler>
        
      	<config mail_xslt_stylesheet="config/scheduler_mail.xsl" port="4106">
      	<params>
      	<param name="test" value="value of test"/>
      	</params>
      

      This job will echo the value of the parameter test

      <job >
          <script  language="shell">
              <![CDATA[
      echo %scheduler_param_test%
              ]]>
          </script>
      
            <run_time />
      </job>
      

      When the job has a pre processing script the value of scheduler_param_test is empty

      
      This job will echo the value of the {{test}}
      
      <job>
          <script  language="shell">
              <![CDATA[
      echo %scheduler_param_test%
              ]]>
          </script>
      
          <monitor  name="process0" ordering="0">
              <script  language="java:javascript">
                  <![CDATA[
      function spooler_process_before(){
      	return true;
      }
                  ]]>
              </script>
          </monitor>
      
          <run_time />
      </job>
      

      Desired Behaviour

      The value of parameters that are defined in the scheduler.xml configuration file should be available even if a pre processor script is defined for the job.

      Attachments

        Activity

          People

            jz Joacim Zschimmer
            ur Uwe Risse
            Joacim Zschimmer Joacim Zschimmer
            Uwe Risse Uwe Risse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: