How To: Specify Notification Subjects, Messages, and Severities at Run-Time
When you use a Notification Action, File Capture Action, or Notification Task, you specify the subject and message text to be used in the notification messages sent by adTempus.
In many cases it is useful to be able to customize the content of these messages at run-time. For example, if you have a notification message that gets sent when a job starts because of a File Trigger, you might want the name of the file to be included in the message.
This can be accomplished using Job Variable tokens in the message subject and body fields.
The predefined %DEFAULTMESSAGE% token can be used in Notification Actions. It expands to the default message for the event that triggered the action; the message describes the event that occurred (such as "Job XXX Failed").
Notification Severity
You can also override the notification severity using a script (run by a Script Condition, Script Execution Task, etc.). Simply set the MessageSeverity variable to the severity you want to use (1 through 9). When you make this change, it applies only to the next notification action taken by the job (i.e., the next Notification Action, Notification Task, or File Capture Action executed by the job).
If you want to override the severity for all subsequent notifications in the entire job, set the MessageSeverityAll variable instead.