The Is Not Empty Filter Component checks whether a given input field contains data. If the field is not empty, the message is passed through the notEmpty
port; otherwise, it is routed to empty
.
This component is used to validate whether a text, number, or boolean value is present before proceeding with further processing in workflows.
sourceData
any
The data field to be checked for non-emptiness.
in
Accepts input data for validation.
notEmpty
Emits the message if sourceData
contains data.
empty
Emits the message if sourceData
is empty.
Receives Input Data:
Accepts a dataset (sourceData
) from the input.
Checks for Non-Empty Condition:
If sourceData
is a number or boolean, it is considered not empty.
If sourceData
is an empty string, array, object, or null
, it is considered empty.
Routes the Message:
If sourceData
contains data, the message is sent to the notEmpty
port.
Otherwise, it is sent to the empty
port.
sourceData
any
The original data that was checked.
result
boolean
true
if sourceData
is not empty, otherwise false
.
Supports Various Data Types: Works with text, numbers, booleans, arrays, and objects.
Automatically Handles Numbers & Booleans: These values are never considered empty.
Ideal for Conditional Filtering: Useful in workflows that need to check for data presence before proceeding.
This component is essential for workflows that require validation of data presence before further processing.