A component to filter the incoming data based on arbitrary expression.
body.foo- will be true if
body.foois defined and not
body.foo > 5
parseFloat(body.flString) > 2
body.flString > 20
moment(body.iso8601).day() == 1
The expression that you use in filer will be evaluated in the fresh JS context but you can expect following in the context:
body- this is the body of incoming message
attachments- attachments from incoming message
headers- headers for incoming message
moment- useful library for date and time transformation, documentation can be found here.
Rejected messages could be optionally sent to the other integration flow, but please note that only integration flows that start with Webhook and may potentially accept the incoming data could be selected as reject flow.
By default no environment variable is necessary to operate the component. However, a tenant level environment variables must be added to the component repository.
Current version of the component requires a Webhook URL basis for your environment
HOOKS_URL- basis url for your webhooks, like
https://tenant-address/hook/(note the slash at the end)
This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.
This triggers has two parameters:
false. If it is evaluated
falsemessage will be rejected.
Send rejected messages to- An optional parameter with a possibility to select the flow ID which would receive the message in case the first parameter was evaluated
false. Only WebHook flow can be selected.
Apache-2.0 © elastic.io GmbH