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. Routes are executed sequentially (not in parallel): a bundle is not sent to the next route until it has been completely processed by the previous route.
HINT: To verify the order, you can click the Auto-align icon, which will arrange the routes according to the order from top to bottom.
HINT: To change the order, just remove the Router module and re-connect the routes in the desired order.
To filter bundles that will pass through to a specific route, define a filter. For more information on how to use filters, please refer to the help section on Filtering.
The route with ticked checkbox Default route is used in the case when a bundle could not continue on from the Router via any other route, since conditions specified in the filters for the other routes were not met. The Default route is distinguished with a different arrow sign inside the Router module:
A Router can be added to a scenario in one of the following ways:
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 a counterpart of the Router module. It enables you to merge several routes into one: