A component to filter the incoming data based on an arbitrary JSONata expression.
Filter will pass through the incoming data if it matches the JSONata condition specified in the configuration. You can use any valid JSONata expression, so you can be creative. Here are some examples that are possible:
20 > 5
body.foo- is true if
body.foois defined and not
By default no environment variable is necessary to operate the component.
This component has no trigger functions. This means it will not be selectable as the first component in an integration flow.
This action has two parameters and a checkbox:
Filter condition - A JSONata expression passed in through the cfg.
The expression will be evaluated to a value of
false- a message will be logged to the console and the msg will not be sent forward to the next component.
true- a new message with empty body will be passed forward along with all data that passed the condition.
If checked, the checkbox adds
Assertion functionality. Instead of doing nothing,
the component will throw an error when the condition is not met.
Metadata To Response Adding passthrough from a previous step to message body as
elasticioMeta variable, if enabled.
The JSONata Filter expression can be a valid expression however it can cause an
error to be thrown if it is invalid based on the context. For example,
$number(hello) > 5 where
hello: "world". This JSONata expression is valid
but an error will be thrown as