Overview
Streams are a key model component. They represent a structured store of data within PhixFlow receiving data from one or more components, processing it then storing it.
...
When you make changes to streams and stream attributes, PhixFlow automatically publishes them to the stream data tables in the database; see Publishing Streams.
Stream Properties
Basic Settings
...
Updating a static stream
In general, static streams are not updated during an analysis run that is initiated on another stream in the model. The exception is when an incoming push pipe is triggered, as this will force the stream to update itself.
Instead, to update the data in a static stream you must run analysis directly on the stream via:
- the model
- a task plan.
...
- Transactional: allows multiple users to run independent analysis tasks at the same time.
- Daily: generate or collect data every day.
- Monthly: generate or collect data every month.
- Variable: generate or collect data since the more recent run of the stream to the current date.
As transactional streams need a UID
attribute, PhixFlow automatically creates this stream attribute if it does not already exist.
...
This option affects the following items for which this is the backing stream:
- stream views
- dashboards
- card layout components.
...
If no option is is selected, PhixFlow assumes the default data range is All.
You can override this setting using the options Use Custom Data Range and Data Range available:
You cannot override this setting for a stream view.
...
Select the stream type. The type indicates the function that operates on the data.
- Aggregate Stream
- Calculate Stream
- CalculateBySet Stream
- Cartesian Stream
- Merge Stream
...
Select a loop pipe from the list of those available.
A loop pipe links the stream back to itself. It compares new data records to the existing data records. If there is a repeated record PhixFlow uses the new one in the stream and marks the old one as superseded
.
...
This check box is available when the Period is Transactional.
...
When Audit Manual Changes is first set, the attributes UpdateAction
, UpdatedByName
, UpdatedByID
and UpdatedTime
will be created if they do not already exist. If you do not require these attributes, delete them. For the UpdatedByName
attribute, PhixFlow creates a field of 250 characters. (In versions up to 8.0.4, the field was 50 characters long.)
UpdateAction
must be set to the type of action, such as INSERT, UPDATE or DELETE. The other attributes will be populated if they exist on the stream:
UpdatedByName
- the name of the user that performed the update,UpdatedByID
- the internal id of the user that performed the updateUpdatedTime
- the date and time the update was made
Attributes
...
The grid lists the attributes (data columns) in the stream data. To edit the properties of an attribute, double-click the attribute name to open the Stream Attributes properties.
...
To add an existing attribute to the list:
...
To edit only the expression:
- Right-click an attribute name to display the context menu.
- Select Edit the expression field.
- PhixFlow opens a simple text editor box
- Make changes to the attributes expression.
- Click to save your changes.
...
do ( $aRange = [], addElement($aRange, rng.RangeFrom), addElement($aRange, rng.RangeTo), $bRange = [], addElement($bRange, $aRange), $bRange )
...
ifNull(in.ASSET, [1,10,12] , // else do [5,7] )
...
do( lookup(lkin, $num = in.BNumber), lkin )
will return a list of records which match the lookup on the lkin pipe. In this case the required data can be extracted from the Output Multiplier using the following expression :
do ( $values = _type, $values.account_num )
If the output multiplier expression evaluates to _NULL, an empty list of values or an empty list of records then a single output record will be produced with _type set to _NULL, _NULL or an empty record respectively.
...
Select Records to Output
...
You can select a subset of records to output to the next modelling object. You select records using the data in any attribute that is in the stream output. Enter an expression that should evaluate to true or false (equivalently 1 or 0).
When the expression evaluates to true or 1, the records found by the expression are selected and output to the next modelling object.
For example:
- A stream containing data about accounts has an attribute called "active".
- You only want to include "active" accounts in the following streams.
- Active accounts have the value 1.
To select active accounts, enter the expression _out.active
.
All records that have the active attribute set to any other value are ignored.
Actions
The grid contains a list of actions that use the stream. This section has a toolbar with standard buttons.
...
Overview
Streams are a key model component. They represent a structured store of data within PhixFlow receiving data from one or more components, processing it then storing it.
Insert excerpt _standard_settings _standard_settings nopanel true
The tab toolbar has the following additional buttons:
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
When you make changes to streams and stream attributes, PhixFlow automatically publishes them to the stream data tables in the database; see Publishing Streams.
Stream Properties
Basic Settings
Field | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
Name | The name of the stream. | ||||||||
Enabled |
| ||||||||
Static Data |
Updating a static streamIn general, static streams are not updated during an analysis run that is initiated on another stream in the model. The exception is when an incoming push pipe is triggered, as this will force the stream to update itself. Instead, to update the data in a static stream you must run analysis directly on the stream via:
| ||||||||
Period | Select the time period for the stream. This can be either a regular period, or variable.
As transactional streams need a | ||||||||
Default Data Range | This option affects the following items for which this is the backing stream:
If no option is is selected, PhixFlow assumes the default data range is All. You can override this setting using the options Use Custom Data Range and Data Range available: You cannot override this setting for a stream view. | ||||||||
Stream Type | Select the stream type. The type indicates the function that operates on the data.
| ||||||||
Supersede Items on Pipe | Select a loop pipe from the list of those available. A loop pipe links the stream back to itself. It compares new data records to the existing data records. If there is a repeated record PhixFlow uses the new one in the stream and marks the old one as | ||||||||
Audit Manual Changes | This check box is available when the Period is Transactional.
When Audit Manual Changes is first set, the attributes
|
Attributes
The grid contains a list of the stream attributes in the stream. This section has a toolbar with standard buttons and
and Insert excerpt _stream_show _stream_show nopanel true
. Insert excerpt _file_collector_show _file_collector_show nopanel true
The grid lists the attributes (data columns) in the stream data. To edit the properties of an attribute, double-click the attribute name to open the Stream Attributes properties.
To remove an attribute from the stream, select the attribute and click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To add a new attribute to the list, click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To add an existing attribute to the list:
- Click
to list the streams available in the repository.Insert excerpt _stream_show _stream_show nopanel true - Expand a stream to show its attributes.
- Drag an attribute into this list to add it.
To edit only the expression:
- Right-click an attribute name to display the context menu.
- Select Edit the expression field.
- PhixFlow opens a simple text editor box
- Make changes to the attributes expression.
- Click to save your changes.
Anchor multipliers multipliers
Multipliers and Filters
multipliers | |
multipliers |
Field | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
Input Multiplier | The input multiplier expression should evaluate to a list of one or more values. For each value in the list, the internal variable _inputMultiplier will be set to that value and the whole stream processing will be repeated i.e. the pull pipes will be read and the data from those pipes processed to generate output stream items to be added to the current stream set. For example : do ( $aRange = [], addElement($aRange, rng.RangeFrom), addElement($aRange, rng.RangeTo), $bRange = [], addElement($bRange, $aRange), $bRange ) Where rng.RangeFrom = 500 and rng.RangeTo = 1000, the above example evaluates to [[500,1000]], which is a list containing 1 element, which is itself a list containing 2 elements. An Input Multiplier that evaluates to [3,4,7,8] would run the Stream 4 times.Because Input Multipliers are evaluated first in the PhixFlow Timing Cycle they are often used to look up values that can be passed to Database or other Collectors. | ||||||||
Log Input Multiplier Messages |
| ||||||||
Output Multiplier | This field is an expression which should evaluate to an array of values. A separate output record will be produced for each value in the array and this value is available as _outputMultiplier in each of the stream output attribute expressions (each value in the array is also available through _type, although this is not recommended usage). In effect this will multiply each of the output records by the number of elements from the returned list. For example : ifNull(in.ASSET, [1,10,12] , // else do [5,7] ) will create 3 records for every record in the stream if in.ASSET contains a value (setting _type = 1, 10 and 12 in each case). Otherwise it will create 2 records for every record in the stream (and set _type = 5 and 7). An Output Multiplier may also evaluate to a record, or a group of records. For example an Output Multiplier with the expression:do( lookup(lkin, $num = in.BNumber), lkin ) will return a list of records which match the lookup on the lkin pipe. In this case the required data can be extracted from the Output Multiplier using the following expression : do ( $values = _type, $values.account_num ) If the output multiplier expression evaluates to _NULL, an empty list of values or an empty list of records then a single output record will be produced with _type set to _NULL, _NULL or an empty record respectively. | ||||||||
Select Records to Output | You can select a subset of records to output to the next modelling object. You select records using the data in any attribute that is in the stream output. Enter an expression that should evaluate to true or false (equivalently 1 or 0). When the expression evaluates to true or 1, the records found by the expression are selected and output to the next modelling object. For example:
To select active accounts, enter the expression |
Actions
This section has a toolbar with standard buttons. The grid contains a list of actions that operate on the stream.
To edit the properties of an action, double-click its name. To add an action to the list, click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To remove an action from the stream, select the action and click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Stream Item Actions
This section has a toolbar with standard buttons. The grid contains a list of stream item actions that can update records in the stream.
To edit the properties of a stream item action, double-click its name. To add a stream item action to the list, click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To remove a stream item action from the stream, select the stream item action and click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Views
This section has a toolbar with standard buttons. The grid contains a list of the data views for this stream.
To edit the properties of an stream view, double-click its name. To add a stream view to the list, click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To remove an action a view from the stream, select the action view and click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Stream Item Actions
The grid contains a list of stream item actions that can update the stream.
Sort Orders
This section has a toolbar with standard buttons. The grid contains a list of the sort orders for this stream.
To edit the properties of an actiona sort order, double-click the attribute its name. To add an action to the list, click a sort order to the list, click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To remove a sort order from the stream, select the sort order and click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Views
The grid contains a list of the data views for this stream. This section has a toolbar with standard buttons.
o edit the properties of an stream view, double-click the attribute name to open its Stream View properties tab.
To add an stream view to the list, click in the toolbar.
Filters
This section has a toolbar with standard buttons. The grid contains a list of the filters that can be applied to this stream and can be added to this stream's views.
All filters in this list are available in the default view for this stream. For stream views that you create, in the Stream View properties tab → Filters section, you can add filters. The list of available filters is populated by the filters defined for the stream.
To edit the properties of a filter, double-click its name. To add a filter to the list, click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To remove a view filter from the stream, select the view filter and click
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Sort Orders
A list of the sort orders on the stream. See Sort Order.
Filters
A list of the filters on the stream. See Filters on Data Views.
Any filter defined on the stream may appear in the dropdown list of filters accessible from the header of each stream view. To make a filter available in a view, the filter must be added to the list of filters for that view. See Stream View for details.
All filters defined on this tab will be available on the system generated Default View for this Stream.
Inputs
A list of pipes into the stream.
...
Tip |
---|
In a stream view grid, the header row has a drop-down list of filters. The drop-down list is populated by the filters that are selected on the stream view. The filters must first be defined for the stream here. |
Inputs
This section has a toolbar with
and Insert excerpt _list_show _list_show nopanel true
buttons; see standard buttons. In the grid, PhixFlow lists all pipes that connect into the stream. You cannot edit this grid. Insert excerpt _refresh _refresh nopanel true
Note |
---|
This list can include pipes that have no input. This occurs if the source stream has been deleted , or if a model has been moved to a different PhixFlow instance (export/import), leaving behind a referenced stream. Any pipes with no input are highlighted in yellow. To resolve pipes with no input you can:
|
Download Limits
Anchor | ||||
---|---|---|---|---|
|
The following options properties affect the number of data records a user can download from a stream view, such as a table ( grid), chart or card; see Download CSV or Excel Data.
Field | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Stream Download Limit | The Enter the maximum number of records that a user can download from a stream view or card view on this stream. If no value is set, PhixFlow uses the default limit set in System Configuration→ System Tuning → Default Download File Limit. | ||||||||||||||||||||||||
Allow Unlimited Downloads |
| ||||||||||||||||||||||||
User Groups | Available when Allow Unlimited Downloads is ticked. Use this section to select the user groups whose members can download an unlimited number of records. This section has a toolbar with standard buttons and The grid contains a list of user groups that are exempt from the Stream Download Limit. To add a user group to the list:
To remove user groups, use the
|
Data Retention Settings
Anchor | ||||
---|---|---|---|---|
|
Warning |
---|
It is important to always Always specify the data retention values for every stream you create. Streams that have no data retention settings will never have their data deleted. Stream data will accumulate, leading to space and performance issues. |
...
Field | Description | What Data is Deleted | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Keep for N Days |
The age of data in a stream set is its 'to' date, relative to the 'to' date of the newest valid stream set in the stream. | When a stream-data-delete task runs for a stream and:
| ||||||||
Keep for X StreamSets | The number of stream sets to keep in the stream. | |||||||||
Keep Superseded for N Days |
Enter the number of days to keep superseded records in the stream data.
| In a stream where the superseded date is tracked, the stream data contains a mixture of active records and records that have been superseded. When a stream-data-delete task runs for a stream and:
| ||||||||
Keep Superseded for X StreamSets | Available when Track Superseded Data is selected. Enter the number of recent stream sets that will retain their superseded data records. | |||||||||
Apply Delete Filter | :
to open a filter tab where you can set filter conditions; see Filter. PhixFlow applies this filter when it runs a stream-data-delete task. Only the records which match the filter are deleted. |
Store Stream Views
To doThis section has a toolbar with standard buttons. In the grid PhixFlow displays a list of the stream views to store for this stream.
Access Permissions
By default, the permissions to access stream data is set in System Configuration → Allow access to data by default.
You can add specific user groups to restrict access to the stream; see Common Properties → Access Permissions.
...
A list of the analysis models that this stream appears on.
Advanced
The advanced properties field should only be set by, or under the guidance of, Only change the advanced properties with advice by PhixFlow support.
Field | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Advanced Properties | Only use this field with advice from PhixFlow support. | ||||||||||||||||
Database View | Use this option property if your database administrator wants to query stream data in the PhixFlow database. Enter a string in the format By default, this field is blank and no stream view is created in the database. See also Configuring Access to Database Views. | ||||||||||||||||
Storage Options | |||||||||||||||||
Index Scheme
| This determines Select an option to determine how indexes on the stream are organised.
| ||||||||||||||||
Storage Type | Specifies Select an option to specify how data for the Stream stream should be stored:
| ||||||||||||||||
Data Generation Options | |||||||||||||||||
Start Date | The Enter the date that on which this stream starts. Data will be populated into the stream from this date onwards. | ||||||||||||||||
In Memory Cache Size | The Enter the size of the cache that will be maintained when you are using an in-memory stream. See Manage Unsorted Data Using an In-Memory Stream. | Allow Partial Set Processing | If ticked-memory stream. See Manage Unsorted Data Using an In-Memory Stream. | ||||||||||||||
Allow Partial Set Processing |
| ||||||||||||||||
Prevent Parallel Processing | This field only appears if the Period is set to Transactional. If ticked, it ensures that Available when Period is Transactional.
This can be useful where you want to make sure that two analysis runs do not attempt to update the same records at the same time e.g. as a result of two people selecting the same records in a view and then hitting the same action button at the same time to process those records. | ||||||||||||||||
Run Alone | If this flag is ticked then
Any additional analysis tasks submitted while this stream is waiting to start, or while it is generating data, will wait until this stream has completed its analysis before they start. | ||||||||||||||||
Key Tolerances | When building a candidate set, data can be grouped together using a specific key value, e.g. Account Number. If the key value is a number, setting enter a key tolerance will to identify numbers within the given tolerance as the the same key value. | ||||||||||||||||
Default View | The Select the default view selected for the stream. See help on ; see Views for details of creating views on streams. | ||||||||||||||||
Last Run Date (Read only) | The PhixFlow displays the date and time that analysis was last run for this stream. This date is taken from the "to date" of the most recent stream set for this stream. | ||||||||||||||||
Last Run By | The PhixFlow displays the user that last ran analysis on this stream. |