Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
_Banners
_Banners
nameactionflow
nopaneltrue

What is a Gateway Action?

HTML Comment
hiddentrue

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
nopaneltrue
 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
nopaneltrue
 (Single path)

Insert excerpt
_toggle_on
_toggle_on
nopaneltrue
 to make a record go through the first connection point where the condition is met. 

Insert excerpt
_gateway_inclusive
_gateway_inclusive
nopaneltrue
 (Multiple Paths)

Insert excerpt
_toggle_off
_toggle_off
nopaneltrue
 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

  1. Click and drag the 
    Insert excerpt
    _action_gateway
    _action_gateway
    nopaneltrue
     icon in the toolbar onto the canvas
  2. Enter a name for the Gateway action, then select Create Action
  3. In the Gateway action  Properties on the right, the Rules can be seen

Editing Gateway Actions

  1. Right-click on the connector out of the gateway action node and click Edit Expression:
    1. Insert excerpt
      _toggle_on
      _toggle_on
      nopaneltrue
       or
      Insert excerpt
      _toggle_off
      _toggle_off
      nopaneltrue
       Exclusive

    2. Define Rules for each output connection point clicking the 

      Insert excerpt
      _addIcon
      _addIcon
      nopaneltrue
       icon 

    3. Insert excerpt
      _finish
      _finish
      nopaneltrue
       all settings
  2. Hover over the 
    Insert excerpt
    _action_gateway
    _action_gateway
    nopaneltrue
     action on the canvas to see the output connection points
    1. Click on each connection point to connect it to another action node
    2. Once connected, the rules can be changed directly on the connector by right-clicking and choosing 

Image Added

HTML Comment
hiddentrue

Insert excerpt
Gateway Node
Gateway Node
nopaneltrue

Worked Example

Here's a worked example using the Shop Data (available from the Learning Centre).

In this example, we are using:  

  • 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
titleConfiguring a View to Read Only and Auto Save

Insert excerpt
2.02 In-Grid Editing Actionflows
2.02 In-Grid Editing Actionflows
nameGridEditExample
nopaneltrue


  1. For the Auto Save Action Method, choose 
    Insert excerpt
    _actionflow
    _actionflow
    nopaneltrue
  2. For the Auto Save Actionflow, click the 
    Insert excerpt
    _addIcon
    _addIcon
    nopaneltrue
     icon to create a new Actionflow 
    1. Name: NumberCheck

1.02 Actionflow Principles