-
Notifications
You must be signed in to change notification settings - Fork 8
Routes: Branch
TekMonks edited this page Mar 13, 2019
·
1 revision
The Branch Route
The Branch route node is used to implement branching within a pipeline. A branch will clone the incoming message and then send it out with dependencies labeled as per the specified outputs. As many branches can be created as required.
Branching may be useful to log a message, or route it to two independent paths, for example two external systems.
The code block below documents the format for the Branch route node.
"route0":{
"type": "branch",
"dependencies":"listener",
"outputs":["route0.1", "route0.2"]
}
The only property that matters is outputs
. It lists the branches, and the label for the messages which will flow out to these branches. The outgoing messages have the same content as the incoming message.
(C) 2018 - 2021 TekMonks