20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
Mule esb How to use Expression Filters in 5 minutes
1. Mule ESB
How to use Expression Filters in 5 minutes
Gennaro Spagnoli - 2016
2. In this tutorial we will be using the expression filter, which is a filter against a range of
expressions.
As usual, let’s begin creating the http inbound component to trigger the flow
The goal is to send a query param called ‘name’, with a value based on which the flow will
continue or end after the http inbound component
Gennaro Spagnoli - 2016
3. For this purpose we will use the ‘expression filter’ configured in the following way:
The meaning of the expression is to let the incoming messages pass through the filter only if
the expression is evaluated to true. In this case, so, if the passed ‘name’ param value is set to
‘Gennaro’.
Let’s add a set Payload and a logger to see the results, and show the message pass through
the filter.
Gennaro Spagnoli - 2016
4. Let’s dive into postman to test it out.
Test #1. Message not passed:
Gennaro Spagnoli - 2016
Test #2. Message passed:
Fantastic!