How to: |
This section describes how to configure the Rssforeal demo application using the iWay Service Manager Administration Console.
To create the rss-categories portlet:
The iWay Service Manager Tools pane opens.
The Resources pane opens and displays the Gauges tab by default, as shown in the following image.
The Charts tab opens and displays the available charts that can be configured, as shown in the following image.
The Real Time Line Chart configuration pane opens, as shown in the following image. A visual representation of the selected chart (for example, Real Time Line) is displayed on the left. There are five configuration tabs (Sources, Data, Labels, Visuals, and Extras) located on the right. By default, the Sources tab is selected.
Parameter |
Value |
---|---|
Type |
Historical |
Events |
_ekeys(rss.category) |
Aggregation |
COUNT |
History |
43200000 (12 hours) |
Data Range |
10 (Default) |
The Save as Portlet dialog box opens.
You are returned to the main Resources pane where the Portlets tab is now selected.
The new Real Time Line chart (rss-categories) is now added to the table. You are now ready to create the Obama portlet.
An interesting aspect of the Rssforeal demo application is that the topic of interest is not specified anywhere. In fact, the following iFL expression is used as the search topic and the default portlet name:
_sreg(rssforeal.topic,obama)
To change this value edit the rssforeal register set and change the value in the Description column for the following register:
f[rssforeal.topic].t[default]
For more information on how to configure register sets, see Configuring Register Sets.
Perform the following steps to create the Obama portlet, which counts the number of times obama appears in the feed:
The iWay Service Manager Tools pane opens.
The Resources pane opens and displays the Gauges tab by default, as shown in the following image.
The Linear Gauges opens and displays the available linear gauge styles that can be configured, as shown in the following image.
The Horizontal Linear Gauge configuration pane opens, as shown in the following image. A visual representation of the selected gauge (for example, HLinearGauge.4) is displayed on the left. There are four configuration tabs (Sources, Data, Visuals, and Sizing) located on the right. By default, the Sources tab is selected.
Parameter |
Value |
---|---|
Lower Limit |
0 |
Upper Limit |
100 |
Value |
_count(_ekeys(_sreg(rssforeal.topic,obama))) |
The Save as Portlet dialog box opens.
You are returned to the main Resources pane where the Portlets tab is now selected.
The new Horizontal Linear gauge (obama) is now added to the table. Now that both portlets which are used by the Rssforeal demo application are configured, you can start the application.
The Applications pane opens, as shown in the following image.
The Rssforeal demo application opens in a new pop-up window.
The Dashboard tab displays the two portlets (rss-categories and obama), which were configured for the Rssforeal demo application to render data.
You can read new data by clicking Read RSS, which will read the RSS news feeds from Yahoo. Click Reload to refresh the portlets to reflect the updated information.
iWay Software |