Striim 3.9.4 / 3.9.5 documentation

Modifying an application using the Flow Designer

The instructions in this topic assume you have completed the steps in Creating sources and caches using Source Preview and are looking at PosSourceApp in the Flow Designer:

fd1.png

We will enhance this application with a query to join the source and cache and populate a target and WActionStore.

  1. Collapse Sources and expand Base Components.

    fd2.png
  2. Click WActionStore, drag it into the workspace, and drop.

  3. Set the name to PosSourceData.

    2016-04-14_16-07-47.png
  4. Click in the Type field and enter PosSourceContext as a new type.

  5. Click Add Field four times.

  6. Set the fields and data types as shown below. Click the key icon next to MerchantId to set it as the key for PosSourceContext.

    Screen_Shot_2016-04-14_at_4.19.20_PM.png
  7. Add four more fields as shown below.

    Screen_Shot_2016-04-14_at_4.16.41_PM.png
  8. Click the Save just below the types (not the one at the bottom of the property editor).

  9. Set Event Types to PosSourceContext, set Key Field to Merchant ID, and click Save (the one at the bottom of the property editor).

  10. Drag a continuous query (CQ) into the workspace.

  11. Set the name to GenerateWactionContext.

  12. Enter or paste the following in the Query field:

    SELECT p.MERCHANTID,
      p.DATETIME,
      p.AUTHAMOUNT,
      z.Zip,
      z.City, 
      z.State,
      z.LatVal,
      z.LongVal
    FROM PosSource_TransformedStream p, ZipCache z
    WHERE p.ZIP = z.Zip
  13. Set Output to Existing Output and PosSourceData. The configuration dialog should look like this:

    Screen_Shot_2016-04-20_at_7.25.47_AM.png
  14. Click Save. The application should look like this:

    fd3.png
  15. The status should now show Created. Select Deploy App.

    2016-04-20_07-29-19.png
  16. When the status changes to Deployed, select the stream icon below GenerateWactionContext, then click the eye icon or Preview On Run. The data preview pane will appear at the bottom of the window.

    preview_on_run.png
  17. Click Deployed and select Start App. Counts will appear above each of the application's components indicating how many events it is processing per second. (Since this application has a small amount of data, these counts may return to zero before they are refreshed. Run MultiLogApp for a larger data set where the counts will be visible for longer.)

    Screen_Shot_2016-04-18_at_1.29.03_PM.png

    The first 100 events from the GenerateWactionContext output stream will be displayed in the preview pane.

    preview_pane.png

At this point, the WActionStore contains data, so we can query or visualize it. Continue with Browsing data with ad-hoc queries.