Version

    Condition

    Jobflow Component

    Short Description
    Ports
    Metadata
    Condition Attributes
    Details
    See also

    Short Description

    The Condition component routes incoming tokens to one of its output ports based on a result of a specified condition. It is similar to if statement in programming languages.

    [Note]Note

    To be able to use this component, your license needs to support the jobflow. Also, the component requires your project to be executed on CloverDX Server.

    ComponentSame input metadataSorted inputsInputsOutputsEach to all outputsJavaCTLAuto-propagated metadata
    Condition
    no
    11–2
    no
    yes

    Ports

    Port typeNumberRequiredDescriptionMetadata
    Input0
    yes
    For input tokensAny
    Output0
    yes
    For tokens compliant with the conditionInput 0
    1
    no
    For tokens not satisfying the conditionInput 0

    Metadata

    Metadata can be propagated through this component.

    All output metadata must be the same.

    This component has metadata templates available.

    Condition Attributes

    AttributeReqDescriptionPossible values
    Basic
    Conditionyes

    Boolean expression according to which the tokens are filtered. Expressed as a sequence of individual expressions for individual input fields separated from each other by a semicolon.

     

    Details

    For each incoming token, the Condition component evaluates a specified Boolean condition and if the result is true, the token is sent to the first output port, otherwise to the second (optional) output port.

    Condition works the same way as the Filter component.

    For more details about the Condition attribute, see Filter Expression of the Filter component.