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 - Alerts module: External alerts definition
  • 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 - Alerts module: External alerts definition

Added by Rob Flynn | Edited by IBM contributor Rob Flynn on January 4, 2010 | Version 13
  • 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, Web services

For external alert definitions, the Alerts module enables you to push external alerts through a Web service.


Enabling a Dashboard Framework model for a Web service only makes sense for standalone Web application deployments, so you have to create a separate project and deploy it as an application server WAR to expose the Alerts Import Service.

The general steps are described below.

Creating an external alert definition

Use the Manage Alerts portlet to create an external alert definition.

Creating a Web Service on the server

  1. Create a new WebSphere Dashboard Framework project and include the following feature sets:
    Alerts Module
    Dashboard Framework
  2. Create a new model named AlertImporter.
  3. Add a Schema builder (named alertSchema) to this model. Use the following builder inputs:
    • Schema Source Type - Existing URL/File
    • URL or Schema File Location - /WEB-INF/solutions/alerting/schemas/alerting.xsd
  4. Add a Linked Java Object builder (named ImporterLJO). Use the following builder inputs:
    • Class Name - com.bowstreet.solutions.alerting.admin.ImportedAlertsLJO
  5. Add a Web Service Enable builder. Use the following builder inputs:
    • Method - IXml ImporterLJO.importAlerts(IXml)
    • Response SchemaPath - alertSchema/AlertImportResponse
    • Return value name - AlertImportResponse
    • Argument 1 Name (IXml) - alerts
    • Argument Schema Path - alertSchema/Alerts
    • Change other inputs if necessary.
  6. Share the same alert repository with your original Dashboard project containing the Alerts module.
    For more information, see the topic called "Sharing a persistence manager between projects" in the WebSphere Dashboard Framework Information Center.
  7. Deploy your project as an application server WAR.
  8. Verify the WSDL by entering this URL: http://localhost:10038/iWDF602/webengine/AlertImporter/Action\!getWSDL


Creating a Web service client


How you write your Web service client depends on what client technology you choose. To ensure a successful import operation, pay attention to the following elements when you generate your input XML.
  • AlertID - this value must be an existing external alert definition ID
  • Priority - the Alerts module supports three values: 1 (High), 2 (Normal), and 3 (Low). If you use other values, the import will not fail, but the results will be unpredictable.
  • CreationDate, ExpirationDate - all date values should be in the format "2006-02-16T14:31:59Z". If they are not in that format, the import will fail because it will not be able to parse the date value.
Basic sample input XML:

<Alerts xmlns="http://bowstreet.com/2002/10/AlertingSchema">
<Alert>
<AlertID>AlertID_Example_External_Alert</AlertID>
<DisplayName>sampleExternalAlert</DisplayName>
<VersionID>123</VersionID>
<UniqueID>123</UniqueID>
<CategoryID>sampleExternalAlert</CategoryID>
<DisplayCategory>sampleExternalAlert</DisplayCategory>
<Priority>1</Priority>
<DisplayText>sampleExternalAlert</DisplayText>
<DetailedDisplayText>sampleExternalAlert</DetailedDisplayText>
<CreationDate>2006-02-16T14:31:59Z</CreationDate>
<ExpirationDate>2007-02-16T14:31:59Z</ExpirationDate> 


For information about other elements, refer to the schema file /WEB-INF/solutions/alerting/schemas/alerting.xsd.

Verifying the results

Test your Web Service client. To verify the result:
  • XML-file persistence manager - You should see a new XML file generated under Your portlet war\WEB-INF\solutions\alerting\xml_persistence\generic_alerts.
  • Database persistence manager - You should see a new record in table IBMAE_GNRCALRT.
    Tip: The Alerts Module Examples feature set includes sample models that use external alert definitions. Include that feature set in your project to see the samples.

  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (13)
collapsed Versions (13)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (13)Jan 4, 2010 3:23:16 PMRob Flynn  IBM contributor
12Jan 4, 2010 3:21:33 PMRob Flynn  IBM contributor
11Jan 4, 2010 3:21:14 PMRob Flynn  IBM contributor
10Sep 17, 2008 4:40:22 PMKerry Thompson  IBM contributor
9Sep 17, 2008 4:14:06 PMKerry Thompson  IBM contributor
8Sep 16, 2008 5:09:35 PMKerry Thompson  IBM contributor
7Jun 23, 2008 11:44:31 AMRob Flynn  IBM contributor
6Jun 17, 2008 9:44:53 AMRob Flynn  IBM contributor
5Jun 17, 2008 9:40:47 AMRob Flynn  IBM contributor
4Jun 13, 2008 1:15:05 PMRob Flynn  IBM contributor
3Jun 13, 2008 10:23:19 AMRob Flynn  IBM contributor
2May 30, 2008 3:20:23 PMRob Flynn  IBM contributor
1May 22, 2008 10:01:24 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