Analytics Builder 10.9.0 | Using Analytics Builder for Cumulocity IoT | Block Reference | Flow Manipulation | Switch
 
Switch
apama.analyticsbuilder.blocks.Switch
Outputs the values from a given input, or acts as a circuit breaker.
If the Selected Input parameter is specified, then the given input must exist and the corresponding input port must be connected.
If the Selected Input parameter is not specified, then the block acts as a circuit breaker.
You can use the initial default names for the inputs. However, you can also rename them to be more descriptive. The input names must be unique, so two inputs cannot share the same name. Connected inputs must all be of the same type.
The expected use case is that the Selected Input parameter is set to a template parameter which can then be set individually for each model instance to decide which input is used.
Parameters
Name
Description
Type
Notes
Selected Input
To specify an output, specify one of the five input names. To act as a circuit breaker, leave this parameter empty.
string
Optional
Name for input1
The name of the first input to the block.
string
Default: input1
Name for input2
The name of the second input to the block.
string
Default: input2
Name for input3
The name of the third input to the block.
string
Default: input3
Name for input4
The name of the fourth input to the block.
string
Default: input4
Name for input5
The name of the fifth input to the block.
string
Default: input5
Input Port Details
Name
Description
Type
input1
The first input.
any
input2
The second input.
any
input3
The third input.
any
input4
The fourth input.
any
input5
The fifth input.
any
Output Port Details
Name
Description
Type
Switch
The value from the specified input, or no value (circuit breaker) if the Selected Input parameter is empty.
sameAsAll(input1, input2, input3, input4, input5)