Example
TBCIn a weather app a user can search for the weather data for any location using a form field and actionflow.
Image Added
The actionflow is set up as below:
Image Added
Each time the action is run a ForecastID is generated using a sequence in the calculate node. This is saved in the tables that are being run in the subsequent analysis node and is referenced using '_context.ForecastID'. The location that is provided by the user is also used in the tables in the analysis node using '_context.Location'. This value is sent in an API call using http collectors connected to a http datasource. The below analysis model is run as a result.
Image Added
Context Parameters
Tables that are being run may rely on context parameters in their attribute expressions. Adding attributes with the same name as the context parameters to the analysis node will work in the same way. For example, if a table relies on the expression '_context.Name', an attribute called 'Name' can be added to the analysis node. The value for this can then be mapped to this attribute from any preceding connection.
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | basic-h |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| _parent |
---|
| _parent |
---|
nopanel | true |
---|
|
Basic Settings
Field | Description |
---|
Name | Enter the name for the action node. |
Insert excerpt |
---|
| _actionflow_properties |
---|
| _actionflow_properties |
---|
name | show-name |
---|
nopanel | true |
---|
|
| Insert excerpt |
---|
| _actionflow_properties |
---|
| _actionflow_properties |
---|
name | show-text |
---|
nopanel | true |
---|
|
|
Streams
This section has a toolbar with standard buttons. The grid contains a list of streams.
- To add a stream, in the section toolbar click
Insert excerpt |
---|
| _table_list |
---|
| _table_list |
---|
nopanel | true |
---|
|
to open a repository tab filtered to show streams by application. Drag a stream from the list into the grid. - To remove a table, select one and in the section toolbar click
Insert excerpt |
---|
| _delete |
---|
| _delete |
---|
nopanel | true |
---|
|
.
Insert excerpt |
---|
| _description |
---|
| _description |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | access-h |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| _access |
---|
| _access |
---|
nopanel | true |
---|
|