Analytics Builder 10.9.0 | Using Analytics Builder for Cumulocity IoT | Block Reference | Flow Manipulation | Selector
 
Selector
apama.analyticsbuilder.blocks.Selector
Outputs a parameter value depending on which input port has a true value, lowest number taking precedence.
You specify the output value that is to be sent using the parameters of this block. Only one of the parameter values is sent in the output. It is sent when the corresponding input port receives a true value. If more than one input port receives a true value, then the input port is used which has the lowest number in its name. For example, Input 1 has a higher priority than Input 2.
If all input values are false, then the value specified with the No Input parameter is sent.
Example: Input 1 has "high", Input 2 has "medium", Input 3 has "low", and the No Input parameter has the value "off". If none of the input ports receives a true value, then "off" is sent as the output value. If both the Input 2 and Input 3 ports receive a true value and Input 1 receives a false value, then "medium" is sent as the output value. This is because Input 2 has a higher priority than Input 3.
Parameters
Name
Description
Type
Notes
Input 1
The output to be sent when the Input 1 port receives a true value.
string
Input 2
The output to be sent when the Input 2 port receives a true value, but only if this is the port with the lowest number in its name.
string
Optional
Input 3
The output to be sent when the Input 3 port receives a true value, but only if this is the port with the lowest number in its name.
string
Optional
Input 4
The output to be sent when the Input 4 port receives a true value, but only if this is the port with the lowest number in its name.
string
Optional
Input 5
The output to be sent when the Input 5 port receives a true value, but only if this is the port with the lowest number in its name.
string
Optional
No Input
The output to be sent when there is no input which has a true value.
string
Type
The type that is to be used for the output value.
Option - one of:
*Float
*Boolean
*String
Optional
Input Port Details
Name
Description
Type
Input 1
Causes the Input 1 parameter value to be sent if true.
boolean
Input 2
Causes the Input 2 parameter value to be sent if true (and no lower numbered input is true).
boolean
Input 3
Causes the Input 3 parameter value to be sent if true (and no lower numbered input is true).
boolean
Input 4
Causes the Input 4 parameter value to be sent if true (and no lower numbered input is true).
boolean
Input 5
Causes the Input 5 parameter value to be sent if true (and no lower numbered input is true).
boolean
Output Port Details
Name
Description
Type
Output
The output value from one of the parameters.
any