Skip to main content

Striim Cloud 4.1.0 documentation

Step 1: acquire data

The flow starts with a source:

PosAppSource.png

Double-clicking CsvDataSource displays its properties:

cvsdatasrcprops.png

This is the primary data source for this application. In a real-world application, it would be real-time data. Here, the data comes from a comma-delimited file, posdata.csv. Here are the first two lines of that file:

BUSINESS NAME, MERCHANT ID, PRIMARY ACCOUNT NUMBER, POS DATA CODE, DATETIME, EXP DATE, 
CURRENCY CODE, AUTH AMOUNT, TERMINAL ID, ZIP, CITY
COMPANY 1,D6RJPwyuLXoLqQRQcOcouJ26KGxJSf6hgbu,6705362103919221351,0,20130312173210,
0916,USD,2.20,5150279519809946,41363,Quicksand

In Striim terms, each line of the file is an event, which in many ways is comparable to a row in a SQL database table, and can be used in similar ways. Under Parser, click Show Advanced Settings to see the DSVParser properties:

dvsparserprops.png

The true (toggle on) setting for the Header property indicates that the first line contains field labels that are not to be treated as data.

The Output to stream CsvStream uses the WAEvent type associated with DSVParser:

cvstreamwaevent.png

The only field used by this application is data, an array that contains the delimited fields.