...
We recommend that you create a new Order-Job which is called e.g. /lastJobChainJob. This Order-Job is the only Order-Job which has the mail_on_successh1. yes
setting.
...
You insert this Order-Job /lastJobChainJob to all Job Chains as the last Job.
The Job /lastJobChainJob can use the internal API to modify the mail subject in the following form:
Code Block |
---|
<?xml version="1.0" encoding="ISO-8859-1"?> <job order="yes" stop_on_error="no"> <settings> <mail_on_success><![CDATA[yes]]></mail_on_success> </settings> <script language="javascript"> <![CDATA[ function spooler_process()\{ var mail = spooler_log.mail; mail.subject = spooler_task.order.job_chain.name() + " has successfully finished"; return true; \} ]]> </script> <run_time /> </job> |