Working with the ListenAndRetweet Project

This project shows how to listen to tweets with a topic of interest and re-tweet messages.

A user tracks a public stream for the new game "Game of Six", the newest game released from the user's company. The company wants to collect the user IDs who like this game and have positive feedback on the game and would like to re-tweet these tweets.

The tweets and the user IDs are streamed and fed to a mock natural language analysis activity. This mock natural language process activity culls user IDs and tweets that had a positive response to the game "Game of Six." The user then publishes these tweets to Twitter again to increase the user basis.

Prerequisites

Ensure that you have imported the sample project, as described in Importing Sample Projects.

Procedure

  1. Expand the ListenAndRetweet project in the Project Explorer view.
  2. Click Processes > listenandretweet > ListenAndReTweet.bwp.
  3. Click Run > Run Configurations.
  4. Expand BusinessWorks Application in the Run Configurations dialog and click BWApplication.
  5. Ensure only the ListenAndRetweet.application is selected in the Applications tab.
  6. Click Run.
    Note: If this is not your first time to run this application, you need to change the reply status from the Input tab of the Send reply to Tweet (TwitterPublish) activity.
  7. Click the Terminate icon to stop the process.

Result

All the tweets that have positive feedback on the game according to the analysis activity are published to Twitter.