Skip to content

End Switch operator

Overview

Like the Join operator, End Switch merges multiple upstream flows, but while Join corresponds to Fork, End Switch corresponds to Switch.

The use of the End Switch operator is mandatory to mark the convergence point of multiple branches starting from a Switch block.

Output

The output of an End Switch block is a JSON object that represents the aggregation of the outputs of all the upstream activated branches. The activated branches are those that start from the Switch bock with a connection whose condition evaluates to true.
The output has this structure:

{
    ID of the last block of the first activated branch: {
        Output of the first activated branch
    },
    ID of the last block of the second activated branch: {
        Output of the second activated branch
    },
    ...
    ID of the last block of the last activated branch: {
        Output of the last activated branch
    }
}

Block properties

Block properties can be set by editing the block.
A End Switch operator block has these properties:

  • Block name
  • Component version (read only)
  • Block ID (read only)
  • Maximum number of flow branches that can fail without propagating the error: the value 0 indicates that any error of any upstream branch makes the End Switch block produce an error which can lead to a general workflow error. A different value, integer and positive, indicates the maximum number of branches whose errors are ignored, so to have End Switch aggregate the output of the other, non failing, branches and not raise an error.
    Even if errors are ignored they are still visible in the verbose output of the workflow.