Not Filter in Mule

Not Filter in Mule

Not filter will not pass payload if given condition is our example i have nested expression filter in Not filter.So for that expression payload will be blocked.

flow of Not filter :

Not filter configuration :

URL : http://localhost:8085/api/notfilter

Input :

Output :

XML project code :

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:http="" xmlns="" xmlns:doc=""
    <http:listener-config name="HTTP_Listener_Configuration" host="" port="8085" basePath="/api" doc:name="HTTP Listener Configuration"/>
    <flow name="test_payloadfilterFlow">
        <http:listener config-ref="HTTP_Listener_Configuration" path="/notfilter" doc:name="HTTP"/>
        <not-filter doc:name="Not">
            <expression-filter expression="#[message.inboundProperties.'http.query.params'.name == 'himanshu']"/>