Overview of Mulesoft's Expression Filter.
Presentation Includes sample code and output.
Includes sample Mule expressions which can be used.
Overview of Use cases
2. Expression Filter
Expression Filter filters against a range of expressions
Accepts Mule Expressions which results in boolean value
Lets the messages pass through the filter only if the expression is evaluated
to true otherwise it drops it silently.
3. Configuration
Expression : Accepts Mule Expressions which results in boolean value
nullReturnsTrue parameter : Returns True if the expression provided is Null
6. Sample Flow Contd..
Expression used is :
#[payload.endsWith('!!') && message.inboundProperties['http.query.params']['priority'] > 2]
Which means that it will allow the Mule Message to pass through it only if
Payload contains “!!” at the end and has Query parameter “priority” of value
more than 2
7. Sample Flow Test 1,2
Result : Does not Passes the
Expression Filter
Result : Does not Passes the
Expression Filter