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
    Condition11–2

    Ports

    Port typeNumberRequiredDescriptionMetadata
    Input0For input tokensAny
    Output0For tokens compliant with the conditionInput 0
    1For 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.