Skip to content

Multiroute

This module allows branching the workflow flow by sending the same data to multiple destination nodes simultaneously. It works as a splitter that receives input data and sends it without modification to all configured destinations.

The module:

  1. Reads the destination configuration from nextModule, which must be an array of destination node IDs.
  2. Validates that at least one destination is configured.
  3. Returns the original data along with the array of destinations for the execution engine to process each branch.
  4. Marks the output with _meta_.multiRoute = true so the engine identifies that it must execute multiple branches.

If nextModule is not an array, it is automatically converted to one.

This module has no additional configuration parameters. Destinations are configured by connecting the node outputs to other nodes in the visual workflow editor.

{
"nextModule": ["nodo-destino-1", "nodo-destino-2", "nodo-destino-3"],
"data": { },
"_meta_": {
"multiRoute": true,
"destinations": ["nodo-destino-1", "nodo-destino-2", "nodo-destino-3"],
"destinationCount": 3
}
}

It is configured by connecting the Multiroute node to several destination nodes in the visual editor. Input data is sent to all destinations without modification.

  • Data is sent identically to each destination; there is no transformation or filtering.
  • Useful for executing actions in parallel, such as sending a notification and saving to a database simultaneously.
  • If no destinations are configured, the module returns an error and does not continue the flow.
  • The metadata preserves any existing _meta_ in the input data.
  • This module has 90 input connections and 90 output connections according to the configuration.