SlideShare a Scribd company logo
Karthik
 Enricher is used if the target system needs more information
than the source system can provide.
 It enriches the mule message by calling external system or
do some transformation to existing payload and save it into
some scope of variable like session or outbound or
invocation and the transformation happened in en-richer
scope doesn't affect the actual payload.
 Set-property: Save some information extracted from payload
or original payload to some invocation or flow scope variable.
 NOTE: Mule currently supports enrichment of flow
variables and message headers only.
Example:
 Consider a message from a source system contains a zip code
but the target system needs the two letter state. A message
enricher can be used to lookup the state using the zip (postal
code) from an enrichment resource. The enricher calls out to
the enrichment resource with the current message (containing
the zip code) then enriches the current message with the
result.
Example Flow:
 This is a very simple flow with one-way inbound and
outbound endpoints, and which acts as part of an order
processing pipeline. This flow uses an enricher to add a
state flow variable to the current message with the state that
the flow ref returns. The ‘target’ attribute defines how the
current message is enriched using a MessageEnricher which
uses the same syntax as expression evaluators.
Description:
 1. The http endpoint receives an xml input as a payload with
H-No, street, city and zip elements.
 2. In message enricher we modified the payload as zip and
forwarded the same to sub flow to retrieve the state for that
particular zip.
 3. The flow reference in the processor chain of the enricher
receives the state as a payload which enricher assigns to a new
target flow variable named state.
 4. The payload sent from the enricher is the same as the input
payload and the new state variable is added to the xml using
Data-Mapper.
Output:
 The enricher element also supports more advanced use cases
where the message returned by the enrichment resource isn’t
just a simple string which is exactly what we need to enrich
the current message with; often you may want to enrich your
message with just part of the information from the result of
the invocation of an external service.
More Complex Enrichment
 In this particular example the ‘Get State’ endpoint receives
the full message, and we are supposed to use a part of
that payload. Here we mention the part of the payload in
the Source section of the Message Enricher and that is
saved in the target section.
 The “enrichment resource” can be any message processor,
outbound connector, processor-chain or flow-ref. If using
an outbound-connector then of course it should have a
request-response exchange pattern.
Thank You All

More Related Content

PPTX
Mule enricher
PPTX
Mule enricher component
PPTX
Mule batch
PPTX
Message processor in mule
PPTX
Mule esb
PPTX
Splitters in mule
PPTX
Mule splitters
PPTX
File connector
Mule enricher
Mule enricher component
Mule batch
Message processor in mule
Mule esb
Splitters in mule
Mule splitters
File connector

What's hot (20)

PPTX
Connectors in mule
PPTX
Anypoint mq queues and exchanges
PPTX
SMTP MULE
PPTX
Mule message processor or routers
PPTX
Mule Expression Transformer
PPTX
Scatter gather flow in mule
PPTX
Mule Message Chunk Aggregator
PPTX
Mule splitters
PPTX
Mule rabbitmq
PPTX
Mule scopes foreach_scope
PPTX
Mulesoft file connector
PPT
Mulesoft ppt
PPT
Overview of Mule
ODP
Mule Complete Training
PPTX
Mule routing and filters
PPTX
Message structure
PPTX
Rabbit Mq in Mule
PPTX
Mule message structure
PPTX
Mule connectors-session1
PPTX
Mule generic connector
Connectors in mule
Anypoint mq queues and exchanges
SMTP MULE
Mule message processor or routers
Mule Expression Transformer
Scatter gather flow in mule
Mule Message Chunk Aggregator
Mule splitters
Mule rabbitmq
Mule scopes foreach_scope
Mulesoft file connector
Mulesoft ppt
Overview of Mule
Mule Complete Training
Mule routing and filters
Message structure
Rabbit Mq in Mule
Mule message structure
Mule connectors-session1
Mule generic connector
Ad

Viewers also liked (20)

PPT
.Net architecture with mule soft
PPTX
Mule data weave
PPTX
Mule RMI transport
PPTX
Mule – header collection
PPTX
Mule
 
PPTX
Mule XSLT Transformer
PPTX
How to commit a project in svn using svn plugin in anypoint studio
PPTX
Der Klimawandel in den Medien
PPTX
MuleSoft champions program
PPTX
Deployment of Mule ESB Application using MMC
ODP
Dropbox connector Mule ESB Integration
PDF
Data Modeling in Looker
PDF
Reason to connect with Mulesoft
PPTX
Creating a Single Source of Truth: Leverage all of your data with powerful an...
PPTX
Mule rabbit mq
PPTX
Mule Esb Data Weave
PPTX
Frank Bien Opening Keynote - Join 2016
PPTX
Mule Webservices
PPT
Mule B2B
PPTX
Frontend basics
.Net architecture with mule soft
Mule data weave
Mule RMI transport
Mule – header collection
Mule
 
Mule XSLT Transformer
How to commit a project in svn using svn plugin in anypoint studio
Der Klimawandel in den Medien
MuleSoft champions program
Deployment of Mule ESB Application using MMC
Dropbox connector Mule ESB Integration
Data Modeling in Looker
Reason to connect with Mulesoft
Creating a Single Source of Truth: Leverage all of your data with powerful an...
Mule rabbit mq
Mule Esb Data Weave
Frank Bien Opening Keynote - Join 2016
Mule Webservices
Mule B2B
Frontend basics
Ad

Similar to Mule enricher (20)

PPTX
Using message enricher
PPTX
M enrichment
PPTX
Content enrichment using mule message enricher
PPTX
Mulesoft salesforce connector to update Object.
PPTX
Mule scopes 2
RTF
MSB-Remote procedure call
PPTX
A short introduction on anypoint scopes
PPTX
Message state
PPTX
Types of MessageRouting in Mule
PPTX
Spring Integration
PPTX
Routing in mule
PPTX
Telpro Integration
PPTX
Mulebatch
PDF
Business Data Communications Infrastructure Networking and Security 7th Editi...
PPTX
Message enricher example
PPTX
Mule advanced
PDF
Business Data Communications Infrastructure Networking and Security 7th Editi...
PPTX
Mule batch processing
PDF
Business Data Communications Infrastructure Networking and Security 7th Editi...
PDF
quickguide-einnovator-11-spring-integration
Using message enricher
M enrichment
Content enrichment using mule message enricher
Mulesoft salesforce connector to update Object.
Mule scopes 2
MSB-Remote procedure call
A short introduction on anypoint scopes
Message state
Types of MessageRouting in Mule
Spring Integration
Routing in mule
Telpro Integration
Mulebatch
Business Data Communications Infrastructure Networking and Security 7th Editi...
Message enricher example
Mule advanced
Business Data Communications Infrastructure Networking and Security 7th Editi...
Mule batch processing
Business Data Communications Infrastructure Networking and Security 7th Editi...
quickguide-einnovator-11-spring-integration

More from Karnam Karthik (16)

PPTX
Https service mule
PPTX
Http mule
PPTX
Routing and filters
PPTX
Mule system properties
PPTX
Mule splitters
PPTX
Mule properties
PPTX
Mule batch
PPTX
Jms queues
PPTX
Jms topics
PPTX
Mule java part-4
PPTX
Mule java part-3
PPTX
Mule java part-2
PPTX
Mule java part-1
PPTX
Mule java part-3
PPTX
Mule java part-1
PPTX
Mule expression component
Https service mule
Http mule
Routing and filters
Mule system properties
Mule splitters
Mule properties
Mule batch
Jms queues
Jms topics
Mule java part-4
Mule java part-3
Mule java part-2
Mule java part-1
Mule java part-3
Mule java part-1
Mule expression component

Recently uploaded (20)

PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PDF
Complications of Minimal Access Surgery at WLH
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Trump Administration's workforce development strategy
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
advance database management system book.pdf
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Hazard Identification & Risk Assessment .pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Orientation - ARALprogram of Deped to the Parents.pptx
RMMM.pdf make it easy to upload and study
What if we spent less time fighting change, and more time building what’s rig...
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
LDMMIA Reiki Yoga Finals Review Spring Summer
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
Complications of Minimal Access Surgery at WLH
Weekly quiz Compilation Jan -July 25.pdf
Trump Administration's workforce development strategy
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Cell Types and Its function , kingdom of life
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Paper A Mock Exam 9_ Attempt review.pdf.
advance database management system book.pdf
UNIT III MENTAL HEALTH NURSING ASSESSMENT
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Hazard Identification & Risk Assessment .pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf

Mule enricher

  • 2.  Enricher is used if the target system needs more information than the source system can provide.  It enriches the mule message by calling external system or do some transformation to existing payload and save it into some scope of variable like session or outbound or invocation and the transformation happened in en-richer scope doesn't affect the actual payload.
  • 3.  Set-property: Save some information extracted from payload or original payload to some invocation or flow scope variable.  NOTE: Mule currently supports enrichment of flow variables and message headers only. Example:  Consider a message from a source system contains a zip code but the target system needs the two letter state. A message enricher can be used to lookup the state using the zip (postal code) from an enrichment resource. The enricher calls out to the enrichment resource with the current message (containing the zip code) then enriches the current message with the result.
  • 5.  This is a very simple flow with one-way inbound and outbound endpoints, and which acts as part of an order processing pipeline. This flow uses an enricher to add a state flow variable to the current message with the state that the flow ref returns. The ‘target’ attribute defines how the current message is enriched using a MessageEnricher which uses the same syntax as expression evaluators.
  • 6. Description:  1. The http endpoint receives an xml input as a payload with H-No, street, city and zip elements.  2. In message enricher we modified the payload as zip and forwarded the same to sub flow to retrieve the state for that particular zip.  3. The flow reference in the processor chain of the enricher receives the state as a payload which enricher assigns to a new target flow variable named state.  4. The payload sent from the enricher is the same as the input payload and the new state variable is added to the xml using Data-Mapper.
  • 8.  The enricher element also supports more advanced use cases where the message returned by the enrichment resource isn’t just a simple string which is exactly what we need to enrich the current message with; often you may want to enrich your message with just part of the information from the result of the invocation of an external service. More Complex Enrichment
  • 9.  In this particular example the ‘Get State’ endpoint receives the full message, and we are supposed to use a part of that payload. Here we mention the part of the payload in the Source section of the Message Enricher and that is saved in the target section.
  • 10.  The “enrichment resource” can be any message processor, outbound connector, processor-chain or flow-ref. If using an outbound-connector then of course it should have a request-response exchange pattern.