The Greater Than Filter Component checks whether a given input data is greater than a specified value. If the condition is met, the message is passed through the greater
port; otherwise, it is routed to notGreater
.
This component is used to validate if a text, number, or date is greater than a predefined value, making it useful for conditional processing in workflows.
sourceData
string
The data to be compared. Can be a number or date.
greaterThan
string
The value to compare against sourceData
.
exclusive
boolean
If true
, only values strictly greater than greaterThan
pass through. If false
, values equal to greaterThan
also pass.
in
Accepts input data and the value to compare against.
greater
Emits the message if sourceData
is greater than (or equal to, by default) greaterThan
.
notGreater
Emits the message if sourceData
is not greater than greaterThan
.
Receives Input Data:
Accepts a dataset (sourceData
) and a comparison value (greaterThan
).
Checks for Greater Condition:
If both values are numbers, compares them numerically.
If both values are dates, checks if sourceData
is after greaterThan
.
If exclusive
is set to true
, strict greater-than comparison is applied.
Routes the Message:
If sourceData
is greater than greaterThan
, the message is passed to the greater
port.
Otherwise, it is passed to the notGreater
port.
sourceData
string
The original data that was checked.
greaterThan
string
The value compared against sourceData
.
result
boolean
true
if sourceData
is greater than greaterThan
, otherwise false
.
Supports Numeric & Date Comparisons: Compares numbers and dates effectively.
Configurable Strict Comparison: The exclusive
property determines whether equality should be considered.
Ideal for Conditional Filtering: Useful in workflows requiring data validation based on numeric or date values.
This component is essential for workflows that need to filter or route messages based on whether a value exceeds a predefined threshold.