The Router module allows you to branch your flow into several routes and process the data within each route differently. Once a Router receives a bundle, it forwards it to each connected route in the order the routes were attached to the Router.
See our scenario template for the Controlled distribution of data flow.
A Router can be added to a scenario in one of the following ways:
Bto which another module is already connected. Just drag the left "ear" of the module
Aand drop it on to module
You can place a filter on a route after the Router to filter bundles as on any other route: just click on the route, add conditions and click on the "OK" button to save the filter setup:
The filter setup on a route after a Router contains a special option: The fallback route:
When enabled, this route is used in the case when a bundle cannot continue on from the Router via any other route because the filters on the other routes filtered it out. The Fallback route is distinguished with a different arrow sign inside the Router module:
A typical use case of the fallback route is to continue the flow with route
A if the condition is met and with route
B if it is not. This can be achieved with the following steps:
B) to the Router.
Aand specify a condition:
Band and enable the The fallback route option:
The below scenario shows how to:
Instagram can return both images and videos. Adding a Router will allow you to divide the scenario and add a new route so that each type of bundle can be processed separately, at the same time.
Converger is the counterpart of the Router module. It enables you to merge several routes into one: