What is a Gateway Action?
HTML Comment |
---|
|
ZB MY NOTES, DELETE: AUTOSAVE AND READ ONLY REMOVE FROM ATTRIBUTE 'ITEM TYPE'. ADD ACTIONFLOW TO CHECK FOR NUMBERS, FIELD ONLY ALLOWS STRINGS |
The
Insert excerpt |
---|
| _action_gateway |
---|
| _action_gateway |
---|
nopanel | true |
---|
|
action
acts as a decision point and controls
the path that records take as they flow through an Actionflow. Data flow is controlled by the expressions on each output connection points and these provide the logic for which path the data flows. Several output connection points can be added. On the output connection points, you can specify decision logic to control the path of data, record by record., with decision logic on each one.Exclusive vs Inclusive
Control whether or not a record can go through more than one output.
Insert excerpt |
---|
| _gateway_exclusive |
---|
| _gateway_exclusive |
---|
nopanel | true |
---|
|
(Single path)
Insert excerpt |
---|
| _toggle_on |
---|
| _toggle_on |
---|
nopanel | true |
---|
|
to make a record go through the first connection point where the condition is met. Insert excerpt |
---|
| _gateway_inclusive |
---|
| _gateway_inclusive |
---|
nopanel | true |
---|
|
(Multiple Paths)
Insert excerpt |
---|
| _toggle_off |
---|
| _toggle_off |
---|
nopanel | true |
---|
|
to make a record go through all connection points where the condition is met. Rules
For each output connection point, rules (expressions) can be defined to be evaluated. If the condition is met, the record will go through the connection point or points (depending on if the gateway is exclusive or inclusive, see above).
Example Setup
This is an example of a simple gateway Actionflow that receives an order status. Where the order status is Complete, the data is saved but where the order status is Open, an email is sent.
Image Added
Creating Gateway Actions
- Click and drag the
Insert excerpt |
---|
| _action_gateway |
---|
| _action_gateway |
---|
nopanel | true |
---|
|
icon in the toolbar onto the canvas - Enter a name for the Gateway action, then select Create Action
- In the Gateway action Properties on the right, the Rules can be seen
Editing Gateway Actions
- Right-click on the connector out of the gateway action node and click Edit Expression:
Insert excerpt |
---|
| _toggle_on |
---|
| _toggle_on |
---|
nopanel | true |
---|
|
or Insert excerpt |
---|
| _toggle_off |
---|
| _toggle_off |
---|
nopanel | true |
---|
|
ExclusiveDefine Rules for each output connection point clicking the
Insert excerpt |
---|
| _addIcon |
---|
| _addIcon |
---|
nopanel | true |
---|
|
icon Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
all settings
- Hover over the
Insert excerpt |
---|
| _action_gateway |
---|
| _action_gateway |
---|
nopanel | true |
---|
|
action on the canvas to see the output connection points- Click on each connection point to connect it to another action node
- Once connected, the rules can be changed directly on the connector by right-clicking and choosing
Image Added
HTML Comment |
---|
|
Insert excerpt |
---|
| Gateway Node |
---|
| Gateway Node |
---|
nopanel | true |
---|
|
|
Worked Example
Here's a worked example using the Shop Data (available from the Learning Centre).
In this example, we are using:
- A Shop Stock screen containing a grid of the Shop Stock data, a pie chart of the Shop Stock data and a grid of the Shop Departments data - this screen was created using the Multi-Tile template
Tip |
---|
If you are completing this chapter as part of the Actionflow course and using a training instance, the data and screens have already been pre-loaded into the Actionflow Intermediate Application. For this example, we'll be working on the grid on the Shop Stock screen. |
GIF/SCREENSHOT OF FINISHED RESULT
Expand |
---|
title | Configuring a View to Read Only and Auto Save |
---|
|
Insert excerpt |
---|
| 2.02 In-Grid Editing Actionflows |
---|
| 2.02 In-Grid Editing Actionflows |
---|
name | GridEditExample |
---|
nopanel | true |
---|
|
|
- For the Auto Save Action Method, choose
Insert excerpt |
---|
| _actionflow |
---|
| _actionflow |
---|
nopanel | true |
---|
|
- For the Auto Save Actionflow, click the
Insert excerpt |
---|
| _addIcon |
---|
| _addIcon |
---|
nopanel | true |
---|
|
icon to create a new Actionflow - Name: NumberCheck
1.02 Actionflow Principles