You can specify parameters in command on exit code. There are three different ways which can be mixed together.
- specifying single parameters
- clone the paramters from the actual order
- clone the paramter from the actual task
If a job specifies the command on exit code, the parameters can be specified like this
<commands on_exit_code="success"> <start_job job="job3"> <params > <param name="my_param" value="value_of_my_param"/> <copy_params from="order"/> <copy_params from="task"/> </params> </start_job> </commands>
Then the result of job3 when executing this:
echo value of my_param is %scheduler_param_my_param% echo value of my_param_from_task is %scheduler_param_my_param_from_task% echo value of my_param_from_order is %scheduler_param_my_param_from_order%
would be:
SCHEDULER-918 state=starting (at=2013-06-20 15:20:22.232) SCHEDULER-987 Starting process: "C:\WINDOWS\TEMP\\sos338E3.cmd" C:\Users\ur\Documents\sos-berlin.com\jobscheduler\scheduler_current>echo value of my_param is value_of_my_param value of my_param is value_of_my_param C:\Users\ur\Documents\sos-berlin.com\jobscheduler\scheduler_current>echo value of my_param_from_task is value of my_param_from_task value of my_param_from_task is value of my_param_from_task C:\Users\ur\Documents\sos-berlin.com\jobscheduler\scheduler_current>echo value of my_param_from_order is value of my_param_from_order value of my_param_from_order is value of my_param_from_order SCHEDULER-915 Process event
Further References
Job and Order Parameters
- How to set and read job and order parameters
- How to access order parameters and job parameters using the JobScheduler API
- How to pass parameters to subsequent shell jobs in a job chain
- How to dynamically use node parameters and internal parameter substitution
- How to clone parameters from a persistent order