Working with the ParsingPageFeeds-ProductDirection Project

This example collects user IDs of the company's fans and userIDs of fans of the National Weather Service Page, and determines product direction by analyzing the data.

Prerequisites

  • Ensure that you have imported the sample project, as described in Importing the Sample Project.
  • This description assumes that you know how to configure TIBCO BusinessWorks processes. See the TIBCO BusinessWorks documentation for details.
  • To configure this example for your own application, you must get the Page ID for the company page, Page ID for National Weather Service page and a User Access Token.

Procedure

  1. In the Project Explorer view, expand the Module Descriptors resource, and then double-click Components.
  2. By default, all the processes are listed in the Components editor. Select the process that you do not want to run and click the remove selected component icon.
  3. On the toolbar, click the Save icon to save your changes.
  4. From the menu, click Run > Run Configurations to run the selected process.
  5. In the Run Configurations dialog, expand BusinessWorks Application, and then click BWApplication.
  6. In the right panel, click the Applications tab, and select the check box next to sample.application.
  7. Click Run to run the selected process.
  8. Click the Terminate icon to stop the process.

Result

The ParsingPageFeeds(GetOurPageFans) process collects the user IDs of the company's Facebook page fans and The ParsingPageFeeds(Get-Other-Page-Fans) process collects the user IDs of the National Weather Service page fans. The list of User IDs of company fans and National Weather Service page fans becomes the input to the ProductDirection process, and the output of the MergeUIDs activity is passed on to the next activity. The ProductDirection process determines which company fans are also fans of the National Weather Service, and compares the two numbers. If more than 50% of the company fans are also passionate about weather, the process gives a green light for production of the new product, and then the company crafts a small number of weather stations tastefully framed in Brazilian ironwood, and posts a brief introduction of the product to the company Facebook page, with a link to the company website for more details and photos.