This page is for application designers who want to configure user interactions with data, such as delete or update. It has the reference information about actionflows and their nodes.
Todo-Fiona: page in draft
Overview
For concepts see Understanding Actionflows
This page outlines how to create actionflows and details of each node.
Creating an Actionflow
Any Phixflow component with an tab can have an actionflow added to it.
To create an actionflow:
- In a screen, click a component to display its properties. Components that can have actions are:
- buttons
- grid view
- card/container
- areas
- form fields
- There are 3 ways to add actionflows. In the component properties → ActionflowSettings:
- Adding via an event handler
- click Add New
- Event Type select an event type
- Action Method select Actionflow
- Apply
- Actionflow, click Add New
- Adding via an action directly
- Action Method select Actionflow
- Actionflow, click Add New.
- Quick add for buttons
- Right click on a button and select Add actionflow
- Right click on a button and select Add actionflow
- Adding via an event handler
- PhixFlow opens the actionflow canvas.
- Drag actions from the toolbar onto the central canvas and wire them together. See Wiring Actionflows
- Wire the Input connections or event from the triggering dashboard component to the actionflow.
- Wire the Output connections from the actionflow back to the dashboard components (optional)
Adding Action Nodes
Connection Points
To add action nodes to the actionflow, drag the icons from the toolbar to the canvas. Everything in an actionflow is connection using connection points. They are blue when connected and grey when not connected. Find all the possible connection points below.
Icon | Connection Point | Relevant to | Description |
---|---|---|---|
Interface Driving Connection Point | Input Interface Output Interface |
| |
Interface Request Connection Point | Input Interface Output Interface |
| |
Driving Output Connection Point | Input Data Components Calculate Error rendering macro 'excerpt-include' : No link could be created for '_action_view_driving'. Gateway Actionflow |
| |
Driving Input Connection Point | Output Data Components Calculate Error rendering macro 'excerpt-include' : No link could be created for '_action_view_driving'. Gateway Save Open Screen Open URL Run Analysis Gateway |
| |
Request Output Connection Point | Input Data Components Error rendering macro 'excerpt-include' : No link could be created for '_action_view_request'. |
| |
Request Input Connection Point | Calculate Gateway |
|
Action Nodes
The toolbar includes the following actions that you can drag onto the canvas.
Actions can be added to actionflows in 3 ways:
- Drag actions from the create section in the toolbar
- From existing action nodes
Users can create new actions from connections from existing actions. - Dragging the following items from the repository using
- List Screens
Will create an Open Screen node. - List Tables
Will ask the user if they would like to create a Save node,Error rendering macro 'excerpt-include' : No link could be created for '_action_view_driving'.node orError rendering macro 'excerpt-include' : No link could be created for '_action_view_request'.node. - List Actionflows
Will create an Actionflow node. Doesn't do this yet
- List Screens
For details about each actionflow node, see Actionflow Nodes
Wiring Actions
Wire each node from the output to the input connection points
Mapping Connection Points
Input Connection (available data or user action) map onto the Connection Point in order to pass data to the Actionflow.
- Drag the Input Connection's "Output Connector" onto the required Connection Point.
- The mapping window opens.
- Drag the attributes from the Input Connection (Left) onto the Connection Point (Right)
- Ensure the type of data is the same i.e. we cannot map a text field onto a date field as they are not compatible.
- Create Target Attributes (Optional): drag an attribute on the left to the white space on the right, this will automatically create an attribute of the same name and type.
- Confirm the mapping. Now the "Output Connector" will be blue to indicate it has been mapped .
- Repeat these steps for any additional mappings required.
Building an Actionflow Not sure if we just add the mapping into here?
Data flows through the Actionflow sequentially one stream-item at a time. When a lookup is performed the entire data set is read and processed.
- Connect Inputs to Input Connection Points
- Create new Input Connection Points
- Drag inputs into the white space below the input connection points to create a new one.
- Provide a name.
- Complete the mappings and confirm.
Click on the
to create new connection points_addAdd New- Provide a name.
- Drag Inputs onto the new Input Connecting Point.
- complete mappings and confirm.
- Drag inputs into the white space below the input connection points to create a new one.
- Create new Input Connection Points
- Add Action Nodes
- Click and hold on the desired Action Node, now drag this onto the canvas area.
- Click and hold on the Input Connection, when release a set of action nodes is displayed, select the desired option.
- This process also works from existing Action Nodes.
- Connecting
- From Input Connection : Click and hold on the input Connection, move the mouse over the desired node and select the input connection point.
- check - You will only be prompted to select an input connections if there is more than one input connection point e.g. a dashboard or the connection point is already connected.
- Acton Nodes: Click and hold on the Output Connection Point of the Action Node, move the mouse over the input connection of the desired action node and release the mouse.
- From Input Connection : Click and hold on the input Connection, move the mouse over the desired node and select the input connection point.
- Mapping, once a connection is made a mapping screen will open automatically. As described above click and drag the attributes on the left to create a mapping:
- On to an attribute on the right.
- Into the blank space to create an attribute and mapping automatically.
- Configuring the nodes as described in the nodes section above.
- Repeat the above steps to create you desired configuration.
Running an Actionflow
Actionflows run from by being:
- attached to an event such as a Button, a Double Click event on a grid item or any event attached to an item. link to events
- check - started by a task plan.
Action Flow Properties
Basic Settings
Name | Description |
---|---|
Name | |
Show in the Explorer | Tick Untick |
Terminology changes in progress As part of the redesign of PhixFlow, we are changing the following terms: dashboard → screen
stream → table
stream attributes → attributes
stream item → record
stream set → recordset
stream view → view
stream item action → record-action
stream action → table-action
driver class → database driver