WebSphere Dashboard Framework - Customizing alert notification schedule options Added by Rob Flynn | Edited by Rob Flynn on January 5, 2010 | Version 11
Schedule options for an alert definition are shown on the Automated Notification page of the Manage Alerts portlet. You can customize the pre-defined list of schedule options to add, delete, or overwrite schedules. The list is stored in the notificationSchedules.xml file under the WEB-INF/solutions/alerting/config/ folder. The following sample code shows the main schedule-related elements:
<Label>At the start of every minute</Label>
<Value>0 * * * * ?</Value>
<Label>Yearly on the first day</Label>
<Value>0 0 5 1 JAN ?</Value>
- For the root element, Notifications, there is an attribute called "resources" which specifies the resource bundle file. The attribute is used for the globalization of the schedule labels.
- Each Notification element, such as the notificationSchedule_Minute element in the sample above, maps to an option in the schedule list. The "resource_key" attribute shows the label for this notification schedule entry in the resource bundle file. The value of a resource_key for a Notification element overwrites the value of a Label element on the Web page. The attribute is optional, but is useful for globalization implementation.
To change the default list of schedule options, add or edit the Notification elements in the .xml file.