Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Web Experience Factory wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category Web Experience Factory 8 Documentation WebSphere Portlet Factory 7 Documentation WebSphere Portlet Factory 7.0.1 Documentation Custom Search Scope...
Search
Community Articles > WebSphere Dashboard Framework > WebSphere Dashboard Framework - Customizing the content for alert notifications
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Rob Flynn
Contribution Summary:
  • Articles authored: 237
  • Articles edited: 298
  • Comments Posted: 2

Recent articles by this author

JAX-WS Handler Sample using IBM Web Experience Factory

Overview The Web Experience Factory (WEF) 8.0 release contains an enhancement to the web service call builders that gives you an option to define a global JAXWS handler class. This handler makes it possible for models to intercept and process the inbound and outbound SOAP envelopes associated ...

WebSphere Dashboard Framework 7.0.1.1 Fix pack now available

The WebSphere Dashboard Framework 7.0.1.1 Fix pack has been released.

IBM Web Experience Factory Version 7.0.1.4 Fix Pack is now available

This fix pack includes new fixes and updates for Web Experience Factory Version 7.0.1. and is now available on Fix Central and can be downloaded from here: ...

IBM Web Experience Factory WCAG 2.0 Compliance

IBM Web Experience Factory, developed and tested compliant to WCAG 2.0, can produce output (web pages, sites and content) that can be WCAG 2.0 Level A and Level AA compliant. IBM Web Experience Factory neither enforces nor prevents this compliance. Application developers must know and understand ...

Yeah!!! New IBM Web Experience Factory V8.0 is announced!!!

A quick snapshot of what's new in IBM Web Experience Factory... IBM Web Experience Factory is all about making it quick and easy to develop applications (portlets) that are included as part of an exceptional web experience. We've seen our customers doing some awesome stuff, whether it be ...

Community articleWebSphere Dashboard Framework - Customizing the content for alert notifications

Added by Rob Flynn | Edited by IBM contributor Rob Flynn on January 5, 2010 | Version 8
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: Alerts, Notifications, E-mail
The Alerts engine calls the "processNotifications" method to retrieve alert notification content. This method is found in the email.model and sms.model under "WEB-INF/models/solutions/alerting/notifiers." The processNotifications method passes in all the necessary parameters to form the content, such as the locale, properties map, and alerts list. You can modify this method to customize the notification content.

Customizing e-mail notifications


E-mail content type


E-mail content type is defined in email.xml (WEB-INF/solutions/alerting/xml_persistence/notifier_defs). Find the property entry with the name "EMail.content.type" and modify its value.

E-mail subject


E-mail subject is defined in email.xml (WEB-INF/solutions/alerting/xml_persistence/notifier_defs). Find the property entry with the name "EMail.subject" and modify its value.
It also can be overwritten in the "processNotifications" method in email.model (WEB-INF/models/solutions/alerting/notifiers) before initializing the EMailNotifier object. See the following sample code:

//Overwrite email subject
String subject = Messages.getLocalizedString(locale, key);
if(subject != null && !subject.equals("")){
                             properties.put(
                                                                notifierID+"."+EMailNotifier.SUBJECT,
                                                                subject
                             );
} 


With this technique, you can customize the subject by using resource bundles.

E-mail body


E-mail body content is defined by the "prepareContent" method in email.model (WEB-INF/models/solutions/alerting/notifiers). The default content is an HTML table created using IXml API. You can still use IXml to construct your e-mail body or you can use other means if you prefer.

Customizing SMS notifications


SMS content is defined by a helper class VSMSMailNotifier.java. The Alerts module does not provide the source code of this class. If you want to customize the SMS content, modify the method "processNotifications" of sms.model (WEB-INF/models/solutions/alerting/notifiers) to use your own content provider.

  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (8)
collapsed Versions (8)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (8)Jan 5, 2010 10:51:34 AMRob Flynn  IBM contributor
7Jan 5, 2010 10:50:57 AMRob Flynn  IBM contributor
6Sep 17, 2008 4:44:26 PMKerry Thompson  IBM contributor
5Sep 17, 2008 3:38:44 PMKerry Thompson  IBM contributor
4Sep 16, 2008 5:15:13 PMKerry Thompson  IBM contributor
3Jun 13, 2008 1:18:31 PMRob Flynn  IBM contributor
2May 30, 2008 2:51:04 PMRob Flynn  IBM contributor
1May 22, 2008 9:57:35 AMRob Flynn  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • BlogsIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use