Switch
Switch
The Switch operation is a branching operation which routes all processing via a single configured exit.
The Switch operation has one or more exits.
Config Parameters
The Switch operation config attributes are as follows.
| Parameter | Type | Description |
|---|---|---|
exit_idx
|
Integer | The zero-based index number of the exit to use for routing all calls. |
Example Operation
Here is an example Switch operation in JSON representation.
{
"id": 5,
"type": "Switch",
"config": {
"exit_idx": 1
},
"exits": [ 7, 6 ]
}
In this example all processing will continue via exit index 1 to the operation with ID 6.
Exits
There are no special exits for this operation.
| Exit Index | Name | Description |
|---|---|---|
0
|
Branch #1 |
[Required]
All Switch operations must have at least one exit.
|
1
|
Branch #2 + | Additional exits may be present. |