Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.13
-
None
Description
Current Situation
When changing task parameters for SmtpMailMonitor they are not considered. Only changes in order parameters have an effect.
This example Job should send the body "Changing Value" but "Job has run successfully" will be sent.
<job title="Sample"> <params > <param name="MailOnSuccess_host" value="myHost"/> <param name="MailOnSuccess_subject" value="Job has run successfully"/> <param name="MailOnSuccess_body" value="Job has run successfully"/> <param name="MailOnSuccess_to" value="me@server.com"/> </params> <script language="java:javascript"> <![CDATA[ spooler_task.params.set_var("MailOnSuccess_body", "Changing Value"); spooler_log.info(spooler_task.params.value('MailOnSuccess_body')); ]]> </script> <monitor name="sendMail" ordering="0"> <script language="java" java_class="com.sos.jitl.mail.smtp.SmtpMailMonitor"/> </monitor> <run_time /> </job>
Desired Behavior
When changing task parameters for SmtpMailMonitor, these changes should be considered when sending the email.