Configuring iWay Enable Taps

How to:

Two iWay Enable taps were generated by the process flow you created earlier using iWay Designer:

You must now configure these taps using the iWay Enable facilities in the iWay Service Manager Administration Console. By default, the taps are not activated and do not contain any expressions. Each tap can expose any number of events based on the conditional expressions and business logic being used. The use of the _expose() function allows the tap to create business events which will store the time stamped data for each occurrence.

Note: The following procedure describes how to configure the sales.process.tap1 tap. The configuration of the sales.process.tap2 tap is described in a later section, which will demonstrate the importance of updating taps in real-time without having to create new objects or recompile existing components.


Top of page

x
Procedure: How to Configure iWay Enable Taps

To configure iWay Enable taps:

  1. Click Tools in the top pane of the iWay Service Manager Administration Console.

    The iWay Service Manager Tools pane opens.

  2. In the left pane, select Views under the Real-time section.

    The Views pane opens, as shown in the following image.

    The Views pane is used to define and organize iWay Enable data and metadata. For example, key business objectives can be monitored by tapping and analyzing events.

  3. Click the Taps tab.

  4. Select the sales.process.tap1 tap in the Name column.

  5. Right-click the sales.process.tap1 tap and select Edit IFL (iWay Functional Language) from the context menu.

    The Edit IFL Expression dialog box opens.

  6. Enter the following expression in the top section of the Edit IFL Expression dialog box:
    _if(_contains(_ucase(XPATH(TRANSACTION/Region)),EU),
    _expose(sales.eu.sale,XPATH(/TRANSACTION/SalePrice),db,int),_if(_contains
    (_ucase(XPATH(TRANSACTION/Region)),US),_expose(sales.us.sale,XPATH
    (/TRANSACTION/SalePrice),db,int)))

    This expression indicates that we're checking if the Region value within the sales transaction is EU, and if so, we'll expose the SalePrice value to the sales.eu.sale event. Otherwise, if the transaction is for the US region, we'll expose the SalePrice value to the sales.us.sale event. This will keep track of the SalePrice per Region, allowing us to compare the real-time total sales for the two regions.

  7. Click save.

    You are returned to the Views pane, where the new expression is now added to the Expression column for the sales.process.tap1 tap.

    Note: You may need to refresh your Web browser after the expression is saved.

  8. Select the check box next to the sales.process.tap1 tap to activate this tap.

    You are now able to tap into incoming data through the process flow (sales.process) that was configured earlier and generate business events. The events will be associated with real-time feeds, ready to be incorporated into dashboards, composite applications, and other components.


iWay Software