Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Mashup Center wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
  • API Documentation
Community Articles Product Documentation Learning Center IBM Redbooks API Documentation This category IBM Mashup Center 3.0.0.1 Documentation Custom Search Scope...
Search
Learning Center > Demonstrations > Traveling Salesman
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Thanh T Pham
Contribution Summary:
  • Articles authored: 3
  • Articles edited: 2
  • Comments Posted: 1

Recent articles by this author

How do I extract the attribute value of an XML element?

When your input source contains attribute values that you would like to extract, here is one of many useful tips/hints from my colleague Louis Mau. For example, in this figure below, we have a XML element "category" with the attribute "term" that you would like to extract the value "feed". Do ...

Mashup using REST services

Demo scenario - a sample feed reader to translate IBM China news. Using IBM Mashup Center, one can build a sample application that Pull the content from a feed (IBM China news) Use Google REST service to translate each page And present the result in an interactive application This is your ...

Traveling Salesman

Demo scenario - a salesman is planning to visit a number of customers. Using IBM Mashup Center, he built a sample application that Pull the customer info from his enterprise data source Pull the contact info from his personal data Merge and transform these data source And present the result in an ...
Learning Center articleTraveling Salesman
Added by Thanh T Pham | Edited by IBM contributor Anna G O'Neal on February 2, 2010 | Version 7
  • 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: demo, sales, relational, DB2, CSV
Demo scenario - a salesman is planning to visit a number of customers. Using IBM Mashup Center, he built a sample application that
  • Pull the customer info from his enterprise data source
  • Pull the contact info from his personal data
  • Merge and transform these data source
  • And present the result in an interactive application


1.0. Create feeds
1.1. Relational feed
This URL (https://greenhouse.lotus.com/home/content/mashupsfeedinstructions.jsp) provides the instructions to create a DB2 feed. Greenhouse hosted sample relational data sources (DB2 and IDS) to make possible for its users to create relational feeds.




The customer info used in this demo scenario is located in the "custinfo" table. For the demo purpose, select this table and the subset of columns (custno, custname, zip, ticker, website). You can play around of selecting additional info if you want to extend this demo scenario (address, email, ...).




Click on Preview to preview the selected data. This is an useful feature when one discovers the data source for the first time.


1.2. CSV feed
Below is the content of the CSV feed used in this demo scenario.

Custno,Contact,Email,phone
1000,Kent E. Price,kent@aig.com,212-123-456
1010,Miguel M. Garvin,miguel@metlif.com,212-567-8910
1020,Edward A. Bottoms,edward@capitalone.com,770-345-6789
1030,William M. Aston,william@ford.com,502-789-1234
1040,Janis H. Morehouse,janis@dell.com,767-456-7890
1050,Sharon E. Kohler,sharon@cisco.com,408-098-7654

You can copy this content into a text file and create a CSV feed. You need to specify the header row and the default delimiter is already the character coma.


2.0. Create data mashup
The data mashup is composed with 4 operators: 2 source, a merge and a transform operators.
  • The 2 source operators are to pull the data from the created feeds.
  • The merge operator is to merge them together using the common value "custno".
  • The transform operator is to "cleanup" the output feed and to be able to publish it as ATOM feed.




3.0. Presentation mashup

3.1. Display the feed
The created feed mashup can be displayed using the Data Viewer widget. From the feed catalog, one can "Add to Lotus Mashups" in the category "Demo".




3.2. Sample application
To create the sample application, we start with an empty page named "Traveling Salesman". Then we populate it with 3 widgets:
  • The Traveling Salesman Demo widget from the Demo category.
  • The AccuWeather widget also from the Demo category.
  • The Web Site Displayer from the Tools category.
We then wire
  • The Traveling Salesman Demo widget to the AccuWeather widget to send the ZipCode and to display the weather at this given location.
  • The Traveling Salesman Demo widget to the Web Site Displayer widget to send the website URL and to display the given web page.
This wiring process creates the interactive application and completes the demo scenario. You can click on "Save" icon to save the page. When the salesman selects by clicking on a given customer, both Accu Weather and Web Site Displayer widgets will displayed the info associated with this customer: the weather and the Home page.


  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (7)
collapsed Versions (7)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (7)Feb 2, 2010 10:52:24 AMAnna G O'Neal  IBM contributor
6Aug 12, 2009 12:41:14 PMAnna G O'Neal  IBM contributor
5Aug 11, 2008 5:24:30 PMThanh T Pham  IBM contributor
4Aug 11, 2008 5:08:39 PMThanh T Pham  IBM contributor
3Aug 11, 2008 4:33:43 PMThanh T Pham  IBM contributor
2Aug 11, 2008 4:23:34 PMThanh T Pham  IBM contributor
1Aug 11, 2008 4:08:08 PMThanh T Pham  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
  • FacebookIBMSocialBizUX 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