SlideShare a Scribd company logo
1 of 11
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

What's hot

What's hot (20)

Connectors in mule
Connectors in muleConnectors in mule
Connectors in mule
 
Anypoint mq queues and exchanges
Anypoint mq queues and exchangesAnypoint mq queues and exchanges
Anypoint mq queues and exchanges
 
SMTP MULE
SMTP  MULESMTP  MULE
SMTP MULE
 
Mule message processor or routers
Mule message processor or routersMule message processor or routers
Mule message processor or routers
 
Mule Expression Transformer
Mule Expression TransformerMule Expression Transformer
Mule Expression Transformer
 
Scatter gather flow in mule
Scatter gather flow in muleScatter gather flow in mule
Scatter gather flow in mule
 
Mule Message Chunk Aggregator
Mule Message Chunk AggregatorMule Message Chunk Aggregator
Mule Message Chunk Aggregator
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Mule rabbitmq
Mule rabbitmqMule rabbitmq
Mule rabbitmq
 
Mule scopes foreach_scope
Mule scopes foreach_scopeMule scopes foreach_scope
Mule scopes foreach_scope
 
Mulesoft file connector
Mulesoft file connectorMulesoft file connector
Mulesoft file connector
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
 
Overview of Mule
Overview of MuleOverview of Mule
Overview of Mule
 
Mule Complete Training
Mule Complete TrainingMule Complete Training
Mule Complete Training
 
Mule routing and filters
Mule routing and filtersMule routing and filters
Mule routing and filters
 
Message structure
Message structureMessage structure
Message structure
 
Rabbit Mq in Mule
Rabbit Mq in MuleRabbit Mq in Mule
Rabbit Mq in Mule
 
Mule message structure
Mule message structureMule message structure
Mule message structure
 
Mule connectors-session1
Mule connectors-session1Mule connectors-session1
Mule connectors-session1
 
Mule generic connector
Mule generic connectorMule generic connector
Mule generic connector
 

Viewers also liked

Viewers also liked (20)

.Net architecture with mule soft
.Net architecture with mule soft.Net architecture with mule soft
.Net architecture with mule soft
 
Mule data weave
Mule data weaveMule data weave
Mule data weave
 
Mule RMI transport
Mule RMI transportMule RMI transport
Mule RMI transport
 
Mule – header collection
Mule – header collectionMule – header collection
Mule – header collection
 
Mule
MuleMule
Mule
 
Mule XSLT Transformer
Mule XSLT TransformerMule XSLT Transformer
Mule XSLT Transformer
 
How to commit a project in svn using svn plugin in anypoint studio
How to commit a project in svn using svn plugin in anypoint studioHow to commit a project in svn using svn plugin in anypoint studio
How to commit a project in svn using svn plugin in anypoint studio
 
Der Klimawandel in den Medien
Der Klimawandel in den MedienDer Klimawandel in den Medien
Der Klimawandel in den Medien
 
MuleSoft champions program
MuleSoft champions programMuleSoft champions program
MuleSoft champions program
 
Deployment of Mule ESB Application using MMC
Deployment of Mule ESB Application using MMCDeployment of Mule ESB Application using MMC
Deployment of Mule ESB Application using MMC
 
Dropbox connector Mule ESB Integration
Dropbox connector Mule ESB IntegrationDropbox connector Mule ESB Integration
Dropbox connector Mule ESB Integration
 
Data Modeling in Looker
Data Modeling in LookerData Modeling in Looker
Data Modeling in Looker
 
Reason to connect with Mulesoft
Reason to connect with MulesoftReason to connect with Mulesoft
Reason to connect with Mulesoft
 
Creating a Single Source of Truth: Leverage all of your data with powerful an...
Creating a Single Source of Truth: Leverage all of your data with powerful an...Creating a Single Source of Truth: Leverage all of your data with powerful an...
Creating a Single Source of Truth: Leverage all of your data with powerful an...
 
Mule rabbit mq
Mule rabbit mqMule rabbit mq
Mule rabbit mq
 
Mule Esb Data Weave
Mule Esb Data WeaveMule Esb Data Weave
Mule Esb Data Weave
 
Frank Bien Opening Keynote - Join 2016
Frank Bien Opening Keynote - Join 2016Frank Bien Opening Keynote - Join 2016
Frank Bien Opening Keynote - Join 2016
 
Mule Webservices
Mule WebservicesMule Webservices
Mule Webservices
 
Mule B2B
Mule B2BMule B2B
Mule B2B
 
Frontend basics
Frontend basicsFrontend basics
Frontend basics
 

Similar to Mule enricher

quickguide-einnovator-11-spring-integration
quickguide-einnovator-11-spring-integrationquickguide-einnovator-11-spring-integration
quickguide-einnovator-11-spring-integration
jorgesimao71
 

Similar to Mule enricher (20)

Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
M enrichment
M enrichmentM enrichment
M enrichment
 
Content enrichment using mule message enricher
Content enrichment using mule message enricherContent enrichment using mule message enricher
Content enrichment using mule message enricher
 
Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.
 
Mule scopes 2
Mule scopes 2Mule scopes 2
Mule scopes 2
 
MSB-Remote procedure call
MSB-Remote procedure callMSB-Remote procedure call
MSB-Remote procedure call
 
A short introduction on anypoint scopes
A short introduction on anypoint scopesA short introduction on anypoint scopes
A short introduction on anypoint scopes
 
Message state
Message stateMessage state
Message state
 
Types of MessageRouting in Mule
Types of MessageRouting in MuleTypes of MessageRouting in Mule
Types of MessageRouting in Mule
 
Spring Integration
Spring IntegrationSpring Integration
Spring Integration
 
Routing in mule
Routing in muleRouting in mule
Routing in mule
 
Telpro Integration
Telpro IntegrationTelpro Integration
Telpro Integration
 
Mulebatch
MulebatchMulebatch
Mulebatch
 
Message enricher example
Message enricher exampleMessage enricher example
Message enricher example
 
Mule advanced
Mule advancedMule advanced
Mule advanced
 
Mule batch processing
Mule batch processingMule batch processing
Mule batch processing
 
quickguide-einnovator-11-spring-integration
quickguide-einnovator-11-spring-integrationquickguide-einnovator-11-spring-integration
quickguide-einnovator-11-spring-integration
 
Mule esb
Mule esbMule esb
Mule esb
 
DIAMETER_EFORT_ENG.pdf
DIAMETER_EFORT_ENG.pdfDIAMETER_EFORT_ENG.pdf
DIAMETER_EFORT_ENG.pdf
 
HTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
HTTPProtocol HTTPProtocol.pptHTTPProtocol.pptHTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
HTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
 

More from Karnam Karthik (16)

Https service mule
Https service muleHttps service mule
Https service mule
 
Http mule
Http muleHttp mule
Http mule
 
Routing and filters
Routing and filtersRouting and filters
Routing and filters
 
Mule system properties
Mule system propertiesMule system properties
Mule system properties
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Mule properties
Mule propertiesMule properties
Mule properties
 
Mule batch
Mule batchMule batch
Mule batch
 
Jms queues
Jms queuesJms queues
Jms queues
 
Jms topics
Jms   topicsJms   topics
Jms topics
 
Mule java part-4
Mule java part-4Mule java part-4
Mule java part-4
 
Mule java part-3
Mule java part-3Mule java part-3
Mule java part-3
 
Mule java part-2
Mule java part-2Mule java part-2
Mule java part-2
 
Mule java part-1
Mule java part-1Mule java part-1
Mule java part-1
 
Mule java part-3
Mule java part-3Mule java part-3
Mule java part-3
 
Mule java part-1
Mule java part-1Mule java part-1
Mule java part-1
 
Mule expression component
Mule expression componentMule expression component
Mule expression component
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.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.