Generating and Viewing Activities

This section of the tutorial shows you how to generate and view activities in an application.

About this task

Now that your data sources are collecting information about changes to the data, you need to configure your entities to process that information and store it in the activity feed store. Once your application is processing activities, they will become available to users in activity feed widgets.

Procedure

  1. In the Watson Explorer Application Builder administrator tool, open the settings page (the cog icon on the navigation bar).
  2. Click the Application tab, and set Enable comment posting to on.
  3. Navigate to the Entities page in the Application Builder administration tool and click the Book Title entity to begin editing the entity.
  4. Scroll down to the Activity Feed section of the page and set the Monitor activities option to on.

    This section contains options on how activity feed posts about this entity will be rendered. Many of the options define which of the entities fields are included in the activity feed post. For the purposes of this tutorial, leave all these options at the default value. You can find out more information about these options in the Entity Activity Feed Options section.

  5. Scroll down to the bottom of the page and click Save entity. Application Builder now requests all activity information about this entity type from the Watson Explorer Engine, processes it, and then sends it back to the Watson Explorer Engine to store in the activity feed collection.
    Note: This process may take some time depending on your system configuration. Once all initial activities have been processed, any new activities are processed as they happen.
  6. Finally, you need to identify which content the activity feed widget will find important on each page. By default, an activity feed only displays events that have happened to the subject entity. For this tutorial, we will add events from associated Book Titles to the Literary Agent entity activity feed.
    1. Navigate to the Layouts page in the Application Builder administration tool and click the Literary Agent detail page.
    2. Click the pencil icon to the left of the literary_agent_activity_feed widget to begin editing the widget.
    3. In the associations field, enter assigned_books.
    4. Scroll to the bottom of the page and click Save changes.
    Activities that occur to associated books will now appear in the activity feed of the Literary Agent detail page.

Results

Now that you have produced an activity feed, view the widgets you created, post a comment on an activity feed, and choose to follow pages configured to display activity feeds. In the Application Builder administration tool, do the following:

  1. Click the View App link from the title bar of the administration tool. The home page for your application displays.
  2. From the Application Builder home page, click Book Titles. Scroll down and go to the next page until you can see the Tow Truck Tales link.
  3. Click the Tow Truck Tales book title link. The index page for that book title and its associated content displays. Scroll down the page to locate the activity feed widget content that should now be displaying on this page. You can click the most recent activity notices to expand the item and display exactly the information that has changed.
  4. Post a comment in the activity feed. Your comment will appear in the activity feed for the book.
  5. Navigate to the list page for literary agents and select Tony Green. Notice that the post and activity for the associated book Tow Truck Tales is listed.

You have now completed the procedures to view, post and follow an activity feed on an application page.

You have completed the Application Builder tutorial, which shows the workflow for planning, building, and deploying a big data search application with Application Builder. The general workflow is to analyze your data to understand it, define your data in the form of entities, and build pages and widgets. This three-phase workflow can be repeated until the end result is a 360-degree application that is engineered to deliver the value of big data.

What to do next

Now that you have completed the Watson Explorer Application Builder tutorial, you can explore the other features of Application Builder. Consider the following tasks: