SlideShare a Scribd company logo
By Anirban Sen Chowdhary
Mule Message Enricher is an important component in Mule.
The Mule Message Enricher allows the current message to be used in performing
a particular task separately without disturbing the original message.
The task will be performed and the current message will not be changed or
disturbed
So, how can we use Message Enricher in Mule ????
Mule Message Enricher is the block or scope where we can put our message
processors that will perform a certain task without modifying the actual payload
Let’s consider a flow where we will set a payload and call an external service,
extract a value of an element from response and will log the extracted value
from the response as well as the original payload at the end of the flow
Our Mule Config will be :-
You can see that we are calling an external web service, getting it’s response,
extracting an element value from the response and storing into a variable.
At the end of the flow we are logging both the variable and
undisturbed original payload
This is how it works :-
You can see the Original payload which is a SOAP request for the external service is undisturbed
and can be logged at the end of the flow in a logger. In mean time the payload is used in the
Message Enricher block to call the external service, transformed into SOAP XML, and extract a
value from SOAP response using XPATH and stored in a flow variable
To test the application, if we hit the url http://localhost:8081/test , we will get
in our log :-
You can see in logs both the variable and the original payload are logged in
console
In my next slide I will bring some other techniques in Mule
implementation .
Hope you have enjoyed this simpler version.
Mule message enricher

More Related Content

PPTX
Setting filedynamically
PPTX
Mule with composite source
PPTX
Using message enricher
PPTX
Deploying and Running in Mule
PPTX
Idempotent filter in Mule
 
PPTX
Getting anypoint studios all versions
PPTX
Using spring task scheduler in java in mule
PPTX
Mulesoft http connector
Setting filedynamically
Mule with composite source
Using message enricher
Deploying and Running in Mule
Idempotent filter in Mule
 
Getting anypoint studios all versions
Using spring task scheduler in java in mule
Mulesoft http connector

What's hot (13)

PPTX
Stored procedure in Mule
PPTX
Scatter and gather in mule
PPTX
Sending mail with attachment
PPTX
Accessing jms in mule using groovy
PPTX
Running mule standalone
PPTX
Mule quartz
PPTX
Mule batch job
PPTX
Cache for community edition
PPTX
Accessing Mule variables in groovy
PPTX
Encrypting/Decrypting mule
PPTX
xslt in mule
PPTX
Mulesoft vm transport reference
PPTX
Groovy in Mule
Stored procedure in Mule
Scatter and gather in mule
Sending mail with attachment
Accessing jms in mule using groovy
Running mule standalone
Mule quartz
Mule batch job
Cache for community edition
Accessing Mule variables in groovy
Encrypting/Decrypting mule
xslt in mule
Mulesoft vm transport reference
Groovy in Mule
Ad

Viewers also liked (20)

PPTX
Message enricher in mule
PDF
Mule esb examples
PPTX
Process file one after another
PPTX
Simple groovy example in mule
PPTX
Mule with drools
PPTX
Using groovy in mule
PPTX
Custom filters in mule soft
PDF
Validations module
PPT
Java components in Mule
PPTX
Mule with quartz
PPTX
Mule with rabbitmq
PPTX
Deploying and running in mule standalone
PPTX
Sharing resources with mule
PPTX
Caching a simple way
PPTX
Delaying jms with mule
PPTX
Combing xml in Mule
PPTX
Mule Collection Aggregator
PPTX
Handle exceptions in mule
PPTX
Mule dynamic name space
PPTX
Scatter gather in mule
Message enricher in mule
Mule esb examples
Process file one after another
Simple groovy example in mule
Mule with drools
Using groovy in mule
Custom filters in mule soft
Validations module
Java components in Mule
Mule with quartz
Mule with rabbitmq
Deploying and running in mule standalone
Sharing resources with mule
Caching a simple way
Delaying jms with mule
Combing xml in Mule
Mule Collection Aggregator
Handle exceptions in mule
Mule dynamic name space
Scatter gather in mule
Ad

Similar to Mule message enricher (20)

PPTX
Content enrichment using mule message enricher
PPTX
Message enricher example
PPTX
M enrichment
PPTX
Mule enricher
PPTX
Mule enricher
PPTX
Mule enricher component
PPTX
How to use message enricher
DOCX
Mule esb beginner’s guide
PPTX
Mule esb
PPTX
Mule esb
PPTX
Mule advanced
PPTX
Mule esb mule message
PPTX
Mule message
PPTX
Mule message structure
PPTX
PPT
Mule esb presentation 2015
PDF
MuleSoft ESB Message Enricher
PDF
Mule ESB Interview or Certification questions
PPTX
Mule esb
PPTX
Mule esb kranthi
Content enrichment using mule message enricher
Message enricher example
M enrichment
Mule enricher
Mule enricher
Mule enricher component
How to use message enricher
Mule esb beginner’s guide
Mule esb
Mule esb
Mule advanced
Mule esb mule message
Mule message
Mule message structure
Mule esb presentation 2015
MuleSoft ESB Message Enricher
Mule ESB Interview or Certification questions
Mule esb
Mule esb kranthi

More from Anirban Sen Chowdhary (20)

PPTX
Change the game with Game changer
PPTX
Ring central desktop app overview
PPTX
Overview in ringcentral digital line
PPTX
Some basics with ring central
PPTX
Ring central and python
PPTX
RingCentral application development overview
PPTX
Cloze connect ringcentral
PPTX
Overview on ring central errors part 4
PPTX
Setting up your ring central sandbox in steps
PPTX
Overview on ring central errors: part 2
PPTX
Overview on ring central errors
PPTX
Call recording overview ring central
PPTX
Ring central engaging with amazon alexa
PPTX
How ring central sdk changing the game
PPTX
When ring central connect salesforce
PPTX
Mule 4 connecting ring central
PPTX
Ring central sdk
PPTX
Ring central with okta
PPTX
Ring central connecting salesforce overview
PPTX
Ring central call logs overview (part 2)
Change the game with Game changer
Ring central desktop app overview
Overview in ringcentral digital line
Some basics with ring central
Ring central and python
RingCentral application development overview
Cloze connect ringcentral
Overview on ring central errors part 4
Setting up your ring central sandbox in steps
Overview on ring central errors: part 2
Overview on ring central errors
Call recording overview ring central
Ring central engaging with amazon alexa
How ring central sdk changing the game
When ring central connect salesforce
Mule 4 connecting ring central
Ring central sdk
Ring central with okta
Ring central connecting salesforce overview
Ring central call logs overview (part 2)

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Big Data Technologies - Introduction.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation theory and applications.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding
Digital-Transformation-Roadmap-for-Companies.pptx
Electronic commerce courselecture one. Pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
20250228 LYD VKU AI Blended-Learning.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Monthly Chronicles - July 2025
Big Data Technologies - Introduction.pptx
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The Rise and Fall of 3GPP – Time for a Sabbatical?

Mule message enricher

  • 1. By Anirban Sen Chowdhary
  • 2. Mule Message Enricher is an important component in Mule. The Mule Message Enricher allows the current message to be used in performing a particular task separately without disturbing the original message. The task will be performed and the current message will not be changed or disturbed
  • 3. So, how can we use Message Enricher in Mule ????
  • 4. Mule Message Enricher is the block or scope where we can put our message processors that will perform a certain task without modifying the actual payload
  • 5. Let’s consider a flow where we will set a payload and call an external service, extract a value of an element from response and will log the extracted value from the response as well as the original payload at the end of the flow
  • 6. Our Mule Config will be :- You can see that we are calling an external web service, getting it’s response, extracting an element value from the response and storing into a variable. At the end of the flow we are logging both the variable and undisturbed original payload
  • 7. This is how it works :- You can see the Original payload which is a SOAP request for the external service is undisturbed and can be logged at the end of the flow in a logger. In mean time the payload is used in the Message Enricher block to call the external service, transformed into SOAP XML, and extract a value from SOAP response using XPATH and stored in a flow variable
  • 8. To test the application, if we hit the url http://localhost:8081/test , we will get in our log :- You can see in logs both the variable and the original payload are logged in console
  • 9. In my next slide I will bring some other techniques in Mule implementation . Hope you have enjoyed this simpler version.