Route shape

Introduction

The route shape is used for cases where a process flow needs to split into multiple paths, based on a given set of conditions. Conditions are defined based on any fields found in the schema associated with your source data, so the scope for using routes is huge.

To define multiple routes for your process flow you must:

  1. Add a route shape.

  2. Configure the route shape to add required routes and conditions.

  3. Build the flow for each configured route by add shapes in the usual way.

By default, multiple routes are processed in parallel when a process flow runs.

Accessing route shape settings

When you add a route shape to a process flow, the shape is added to your canvas with two placeholder route stems - for example:

To configure these routes (and add more if needed) click the 'cog' icon associated with this shape to access route settings.

Configuring route data for a new route shape

Follow the steps below to configure route data for a route shape.

Step 1 Select a source integration and endpoint to determine where the incoming payload for the route shape is coming from - for example:

Step 2 Select a routing method to determine what should happen if a payload record matches conditions defined for more than one route:

These options are summarised below:

OptionSummary

Follow all matching routes

If a record matches defined conditions for multiple routes, send it for onward processing down all matched routes.

Follow first matching route only

If a record matches defined conditions for multiple routes, send it for onward processing down the first matched route, but no more.

Step 3 Click the 'edit' icon associated with the first route:

Step 4 Enter your required name for this route - it's a good idea to ensure this provides an indication of the route's purpose. For example:

Step 5 Click the add new filter button:

Step 6 Filter settings are displayed:

From here, you can select a field (from the data schema associated with the source endpoint selected in step 1) - for example:

Alternatively, you can toggle the manual input option to ON and add syntax for dynamic variables:

The manual data path field supports metadata variables.

Step 7 Use remaining operator, type and value options to define the required filter.

Presentation of the value field is dependant upon your selected type. When defining a value, you can include payload, flow, and metadata variables.

Step 8 Use the keep matching? toggle option to choose how matched records should be treated:

Here:

  • If the keep matching? option is toggled OFF, matched records are removed from the payload before it moves on down the flow for further processing.

  • If the keep matching? option is toggled ON, matched records remain in the onward payload, and all non-matching records will be removed.

Step 9 Click the save button (at the bottom of the panel) to confirm these settings. The new rule is added for your first route - for example:

Step 10 Repeat steps 5 to 9 to add any additional rules for this route. When you've added all required rules, click the save/update button at the bottom of the panel.

Step 11 Repeat steps 3 to 9 to configure the second route.

Step 12 Add any additional routes required using the add route button. Each time you add a new route, the canvas updates with an additional route stem from your route shape.

Step 13 Save your changes.

What next?

Having defined all required routes and associated conditions, the route shape on the canvas will have the corresponding number of route stems, ready for you to add shapes. For example:

Click the + sign for each branch in turn, then add the required shapes for each route flow.

Last updated