Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleExample
collapsetrue
...
<NotificationCommand><![CDATA[
echo scheduler id=%MON_N_SCHEDULER_ID%, history id=%MON_N_ORDER_HISTORY_ID%, job_chain=%MON_N_JOB_CHAIN_NAME%(%MON_N_ORDER_ID%), step =%MON_N_ORDER_STEP_STATE%, error=%MON_N_ERROR_TEXT% > D://errors.txt
]]></NotificationCommand>
...

SystemMonitorNotification/Notification/NotificationObjects

One of the following elements may be nested inside a NotificationObjects element:

ElementElement descriptionDescription
JobChainOptional, once or more inside of NotificationObjects elementRestricts notifications for job chains
TimerOptional, once or more inside of NotificationObjects elementRestricts notifications for job checks (Timer)
SystemMonitorNotification/Notification/NotificationObjects/JobChain

JobChain support the following attributes:

AttributeUsageDescription
notificationsoptional

Specifies the number of notifications that are sent to a System Monitor.

Default: 1

 scheduler_id optional Notifications are restricted to the JobScheduler instance with the given identification. By default notifications will be sent for all JobScheduler instances that would log into the same database.
 name optional Job chain name including possible folder names
 step_from optional Restricts notifications for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes.
 step_to optional Restricts notifications for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes.
 excluded_steps optional 

 

 

Here you go an example of an XML file used for notifying a specific System Monitor (op5 Monitor) and using NotificationCommand:

...