Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-649

The SmtpMailMonitor should consider changes of the task parameters

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.13
    • 1.13.9
    • 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.

      Attachments

        Activity

          People

            ur Uwe Risse
            ur Uwe Risse
            Kanika Agrawal Kanika Agrawal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: