Greater Than
Overview
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
.
Usage
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.
Properties
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.
Input Ports
in
Accepts input data and the value to compare against.
Output Ports
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
.
Processing Logic
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 aftergreaterThan
.If
exclusive
is set totrue
, strict greater-than comparison is applied.
Routes the Message:
If
sourceData
is greater thangreaterThan
, the message is passed to thegreater
port.Otherwise, it is passed to the
notGreater
port.
Output Data Schema
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
.
Notes
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.
Last updated