Idempotent Filter in Mule 4 | Filter in Mule 4

Idempotent filter in Mule 4

It will not allow payload to pass if same payload is allowed to pass more than once.



Idempotent filter configuration:

Method: POST

Input & output:
On hitting first time from postman:

On hitting second time with same payload:

XML project code:

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

<mule xmlns:http="" xmlns=""
     xmlns:xsi="" xsi:schemaLocation="">
     <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="6410b392-3fcc-4f5c-b1d0-e5be6f7811da" >
          <http:listener-connection host="" port="8085" />
     <flow name="test_idempotent" doc:id="6b29cfee-8203-410b-87cb-f44c693ec585" >
          <http:listener doc:name="Listener" doc:id="660ae438-50ed-4932-9a06-792624a29d87" config-ref="HTTP_Listener_config" path="/idem"/>
          <idempotent-message-validator doc:name="Idempotent Message Validator" doc:id="0197e194-1cb1-4b5d-9239-63c44ba726a0" idExpression="#[payload]"/>

© 2020

Share on :

Mule 4:

XML to JSON in mule 4 Web service consumer VM Validation in Mule 4 Until Successful
Sub flow Set Variable & Remove Variable Set Transaction ID Scatter Gather Round Robin
Consume Restful Service CRUD in Mule 4 Parse Template Object to JSON Load Static Resource
JSON to XML Invoke Idempotent Filter ForEach Flat file to JSON
Fixwidth to JSON First Successful File Execute Error Handling
Email Dynamic Evaluate Custom Business Event CSV to JSON Copybook to JSON
Choice Router Async RabbitMQ

Mule 3:

Database Connector Async CXF Attachement XSLT
Mongo DB Cache scope Custom Business Event Gzip Compress Expression
SMTP For Each Expression Javascript Filter Reference
Salesforce Message Enricher Groovy Parse Template Idempotent
VM Poll Invoke Ruby Message
Webservice consumer Python Transformer reference Message Property Not
Collection Aggregator First Sucessful Catch Exception Strategy Reference Exception Strategy Or
Choice Message Chunk Aggregator Choice Exception Strategy Global Exception Strategy Schema Validation
Custom Aggregator Scatter Gather Custom Exception Strategy Batch Processing MEL
M Unit RAML Map Operator API Mocking Dataweave