Table of Contents |
---|
| outlinh1. true |
---|
| outlinh1. true |
---|
1 | printablefalse |
---|
2 | stylh1. none |
---|
3 | indent20px |
---|
|
Starting a job chain from within a running job chain and handing over parameters programmatically can be effected with the following steps.
Display feature availability |
---|
|
The start of additional job chains can be configured within the current job chain configuration, see How to configure workflow control by return code handling. The below information is intended for users who want to apply scripting for an individual solution.
Create a job CallJobChain
Code Block |
---|
language | xml |
---|
title | configuration of the CallJobChain job |
---|
collapse | true |
---|
|
<job order="yes">
<params/>
<script language="javax.script:ecmascript"><![CDATA[
function spooler_process() {
var thisOrder = spooler_task.order();
var order = spooler.create_order();
var execute_jobchain = thisOrder.params().value("execute_jobchain");
order.id = thisOrder.id + "_next" ;
order.params().merge(thisOrder.params);
spooler.job_chain( execute_jobchain ).add_order( order );
return true;
}
]]></script>
<run_time/>
</job> |
...