Table of Contents |
---|
| outlinh1. true |
---|
| outlinh1. true |
---|
1 | printablefalse |
---|
2 | stylh1. none |
---|
3 | indent20px |
---|
|
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
Code Block |
---|
<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:
Code Block |
---|
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:
Code Block |
---|
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
|