Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
1.9.11, 1.10.6
-
None
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.