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 CloverETL Server.

Component Same input metadata Sorted inputs Inputs Outputs Each to all outputs Java CTL Auto-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
ConditionyesBoolean expression according to which the tokens are filtered. Expressed as a sequence of individual expressions for individual input fields separated from each other by semicolon. 

Details

For each incoming token, the Condition component evaluates 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.

See also

Common Properties of Components
Specific Attribute Types
Common Properties of Job Control
Job control Comparison