Learn about content enrichment using the Mule Message Enricher component to enrich the payload with additional information without disturbing the payload.
The document discusses using a message enricher in Mulesoft to enrich messages by adding additional data from external sources. It provides an example of using an enricher to lookup the two-letter state based on the zip code contained in the original message. The enricher calls an external resource, retrieves the state, and adds it to the message as a new variable before sending it to the target system. This allows target systems to receive messages with more information than what the source system originally provided.
The document discusses message enrichment in Mule using enrichers. It provides an example of using an enricher to lookup a state value based on a zip code and enrich the message with the state. The enricher calls an external system to perform the lookup and saves the result to a flow variable that is then added to the message. Enrichers allow extracting data from payloads or calling external systems to transform or add to the current message.
The document discusses using a message enricher in Mule to enrich messages by calling external systems or doing transformations. It provides an example of using an enricher to lookup the state based on a zip code. The enricher calls an external resource, enriches the message with the result (the state), and the enriched message continues through the flow. More complex usages are also discussed, like enriching with a part of the external resource's payload.
The Mule Message Enricher allows processing of the message without modifying the original payload. It provides a scope to add message processors that perform tasks like calling external services and extracting values from the response, without changing the original message. For example, a flow can use the enricher to call a web service, extract a value from the response into a variable, and log both the variable and original payload at the end, keeping the payload unchanged throughout.
The Mule Message Enricher allows the current message to be enriched by invoking an enrichment resource, which can be any message processor. The enrichment resource runs independently and modifies a copy of the message rather than the original message. The enricher supports enriching flow variables and message headers. It will leave the original message untouched if the enrichment resource does not return a result.
This document describes various elements that compose Mule flows, including connectors, components, transformers, and exception handling strategies. Connectors receive and send messages from external sources and can act as sources, processors, or destinations in a flow. Components enable custom business logic without code. Transformers prepare messages for further processing by altering properties, variables, or payloads. Exception strategies precisely handle errors that occur in flows.
This document summarizes the key elements in a Mule flow, including connectors, components, transformers, and exception handling strategies. Anypoint connectors act as message sources or processors to interface with external systems. Components enable custom business logic without coding. Transformers prepare messages for further processing by altering properties, variables, or payloads. Exception strategies define how errors are handled for both system exceptions and messaging exceptions.
This document contains top 50 MuleSoft Interview questions for the MuleSoft software development job aspirants. Also, this helps, who are taking MCD API Design Associate exam.
Mule ESB Interview or Certification questionsTechieVarsity
Mule ESB is used to integrate the university's new Oracle PeopleSoft Campus Solutions student system with its existing Oracle ERP implementation and other ancillary systems. A Mule flow posts student transaction queues asynchronously to Oracle ERP and manages credit/debit transactions by splitting and routing them. Mule is also used for other integration tasks like batch jobs and file transfers within the university systems.
The document discusses composite sources in Mule ESB, which allow listening to multiple channels for incoming messages. A composite source is a collection of inbound endpoints that listen for requests on different endpoints, and a message received on any endpoint will trigger the flow. Composite sources can be used when a business expects messages from multiple sources like files, web services, JMS, FTP, etc. and the same business process is defined for handling each message. The document provides an XML example of a composite source configuration and explains how to create a Mule flow with a composite source dragging connectors under it to receive messages from different sources like HTTP, file, and JMS.
Mule is a lightweight integration platform that enables connecting systems, services, APIs and devices together. It handles message routing, data mapping, orchestration, reliability, security and scalability between nodes. With Mule, users can integrate on-premise or cloud applications, build and expose APIs, create interfaces for mobile consumption, and connect business-to-business activities. Mule uses event-driven architecture and processes messages through flows containing message processors that accept and process messages. It can also process large messages through batch jobs that split messages into records.
Synchronous and asynchronous software communication components allow applications to exchange information. Synchronous components like REST APIs use requests and responses over HTTP to transfer data immediately. Asynchronous message queues decouple systems by allowing producers to send messages without waiting for consumers to process them, improving scalability. Messages in queues can be retrieved when consumers are ready. Real-world examples of asynchronous communication include email and job processing queues that separate workloads across independent systems.
The enricher component is used to enrich Mule messages by adding additional data from external systems or transformations. It extracts information from the payload and saves it to variables without modifying the original payload. For example, an enricher could call a database to lookup a state code based on a zip code in the payload and add the state to a new variable for the target system. The enricher supports more complex use cases by allowing parts of the external system response to enrich specific fields rather than the full payload.
The File and Database connectors in Mule allow applications to exchange files and connect to databases. The File connector can read and write files as an inbound or outbound endpoint. The Database connector performs SQL operations like select, insert, update and delete. Mule also supports web services through connectors that consume or expose SOAP/REST APIs.
The document discusses various connectors in Mule ESB including the File, Database, and Web Service connectors.
The File connector allows exchanging files with the file system and can be configured as an inbound or outbound endpoint. The Database connector allows connecting to relational databases using JDBC to perform SQL operations. The Web Service connector allows consuming existing web services, building new services, and creating proxies. The REST component allows Mule to act as a RESTful service consumer or publisher.
Business Data Communications Infrastructure Networking and Security 7th Editi...dzejlagirata
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Editi...frohquely
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Frequently asked MuleSoft Interview Questions and Answers from TechlightningArul ChristhuRaj Alphonse
MuleSoft Interview Questions and answers from youtube channel Techlightning
https://www.youtube.com/watch?v=JqBgT2t6cCQ&list=PLfEAetjBY9s4YdBie3VSpufxNcnC3wJvK
- Mule is an event-driven architecture that processes messages through flows and batch jobs. Flows contain a series of message processors that accept and process messages, while batch jobs process large messages as records.
- The basic building blocks of flows are message sources that receive messages, transformers that convert message formats, and components that contain business logic. Messages move through processors, filters, and routers that route messages down different paths.
- Batch jobs split large messages into records and process them asynchronously across batch steps like flows process messages. Batch jobs execute when triggered and produce reports upon completion.
The document discusses key concepts related to software performance testing. It defines performance testing as determining the speed or effectiveness of a computer system or software. It outlines various terminology used in performance testing like throughput, response time, tuning, benchmarking. It also describes different types of performance testing and factors that should be considered like bottlenecks, test process, tools, and metrics.
A short introduction on anypoint scopesSwapnil Sahu
Mule scopes encapsulate message processors to function as a single unit. There are several scopes available in Anypoint Studio including async, cache, foreach, and poll scopes. Async scopes allow message processors to execute asynchronously without slowing down the rest of the flow. Cache scopes store the response from message processors within the scope. Foreach scopes split message collections into individual messages for processing. Poll scopes periodically poll an embedded message receiver for new messages.
The document discusses various components in Mule ESB including the File, Database, and REST components. The File component allows exchanging files with the file system and can be used as an inbound or outbound endpoint. The Database component connects to JDBC databases and performs SQL operations. The REST component allows Mule to act as a RESTful service consumer or provider. DataWeave is introduced as a data transformation language replacing the DataMapper.
The document discusses Mule message structure and components. A Mule message contains a message object that can include variables, attachments, and exceptions. Properties provide metadata about a message and have inbound and outbound scopes, while variables are temporary user-defined metadata with flow, session, or record scopes. The document describes how to set, access, and transform properties, variables, and the message payload using processors like the Property Transformer, Variable Transformer, and Set Payload transformer.
Business Data Communications Infrastructure Networking and Security 7th Editi...nyatiempilar
Instant access to Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual after payment at https://testbankfan.com/product/business-data-communications-infrastructure-networking-and-security-7th-edition-stallings-solutions-manual. Browse additional solution manuals and test banks in https://testbankfan.com Get full PDF chapter.
Mule ESB Interview or Certification questionsTechieVarsity
Mule ESB is used to integrate the university's new Oracle PeopleSoft Campus Solutions student system with its existing Oracle ERP implementation and other ancillary systems. A Mule flow posts student transaction queues asynchronously to Oracle ERP and manages credit/debit transactions by splitting and routing them. Mule is also used for other integration tasks like batch jobs and file transfers within the university systems.
The document discusses composite sources in Mule ESB, which allow listening to multiple channels for incoming messages. A composite source is a collection of inbound endpoints that listen for requests on different endpoints, and a message received on any endpoint will trigger the flow. Composite sources can be used when a business expects messages from multiple sources like files, web services, JMS, FTP, etc. and the same business process is defined for handling each message. The document provides an XML example of a composite source configuration and explains how to create a Mule flow with a composite source dragging connectors under it to receive messages from different sources like HTTP, file, and JMS.
Mule is a lightweight integration platform that enables connecting systems, services, APIs and devices together. It handles message routing, data mapping, orchestration, reliability, security and scalability between nodes. With Mule, users can integrate on-premise or cloud applications, build and expose APIs, create interfaces for mobile consumption, and connect business-to-business activities. Mule uses event-driven architecture and processes messages through flows containing message processors that accept and process messages. It can also process large messages through batch jobs that split messages into records.
Synchronous and asynchronous software communication components allow applications to exchange information. Synchronous components like REST APIs use requests and responses over HTTP to transfer data immediately. Asynchronous message queues decouple systems by allowing producers to send messages without waiting for consumers to process them, improving scalability. Messages in queues can be retrieved when consumers are ready. Real-world examples of asynchronous communication include email and job processing queues that separate workloads across independent systems.
The enricher component is used to enrich Mule messages by adding additional data from external systems or transformations. It extracts information from the payload and saves it to variables without modifying the original payload. For example, an enricher could call a database to lookup a state code based on a zip code in the payload and add the state to a new variable for the target system. The enricher supports more complex use cases by allowing parts of the external system response to enrich specific fields rather than the full payload.
The File and Database connectors in Mule allow applications to exchange files and connect to databases. The File connector can read and write files as an inbound or outbound endpoint. The Database connector performs SQL operations like select, insert, update and delete. Mule also supports web services through connectors that consume or expose SOAP/REST APIs.
The document discusses various connectors in Mule ESB including the File, Database, and Web Service connectors.
The File connector allows exchanging files with the file system and can be configured as an inbound or outbound endpoint. The Database connector allows connecting to relational databases using JDBC to perform SQL operations. The Web Service connector allows consuming existing web services, building new services, and creating proxies. The REST component allows Mule to act as a RESTful service consumer or publisher.
Business Data Communications Infrastructure Networking and Security 7th Editi...dzejlagirata
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Editi...frohquely
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual
Frequently asked MuleSoft Interview Questions and Answers from TechlightningArul ChristhuRaj Alphonse
MuleSoft Interview Questions and answers from youtube channel Techlightning
https://www.youtube.com/watch?v=JqBgT2t6cCQ&list=PLfEAetjBY9s4YdBie3VSpufxNcnC3wJvK
- Mule is an event-driven architecture that processes messages through flows and batch jobs. Flows contain a series of message processors that accept and process messages, while batch jobs process large messages as records.
- The basic building blocks of flows are message sources that receive messages, transformers that convert message formats, and components that contain business logic. Messages move through processors, filters, and routers that route messages down different paths.
- Batch jobs split large messages into records and process them asynchronously across batch steps like flows process messages. Batch jobs execute when triggered and produce reports upon completion.
The document discusses key concepts related to software performance testing. It defines performance testing as determining the speed or effectiveness of a computer system or software. It outlines various terminology used in performance testing like throughput, response time, tuning, benchmarking. It also describes different types of performance testing and factors that should be considered like bottlenecks, test process, tools, and metrics.
A short introduction on anypoint scopesSwapnil Sahu
Mule scopes encapsulate message processors to function as a single unit. There are several scopes available in Anypoint Studio including async, cache, foreach, and poll scopes. Async scopes allow message processors to execute asynchronously without slowing down the rest of the flow. Cache scopes store the response from message processors within the scope. Foreach scopes split message collections into individual messages for processing. Poll scopes periodically poll an embedded message receiver for new messages.
The document discusses various components in Mule ESB including the File, Database, and REST components. The File component allows exchanging files with the file system and can be used as an inbound or outbound endpoint. The Database component connects to JDBC databases and performs SQL operations. The REST component allows Mule to act as a RESTful service consumer or provider. DataWeave is introduced as a data transformation language replacing the DataMapper.
The document discusses Mule message structure and components. A Mule message contains a message object that can include variables, attachments, and exceptions. Properties provide metadata about a message and have inbound and outbound scopes, while variables are temporary user-defined metadata with flow, session, or record scopes. The document describes how to set, access, and transform properties, variables, and the message payload using processors like the Property Transformer, Variable Transformer, and Set Payload transformer.
Business Data Communications Infrastructure Networking and Security 7th Editi...nyatiempilar
Instant access to Business Data Communications Infrastructure Networking and Security 7th Edition Stallings Solutions Manual after payment at https://testbankfan.com/product/business-data-communications-infrastructure-networking-and-security-7th-edition-stallings-solutions-manual. Browse additional solution manuals and test banks in https://testbankfan.com Get full PDF chapter.
Improving performance with cache scope in muleAnkit Lawaniya
Caching is used to optimize application performance by storing frequently accessed data in memory to reduce processing time. Mule provides a cache scope that stores responses from message processors to return for subsequent identical requests without re-executing the processors. It is recommended to define a global caching strategy rather than using the default, as the default only caches in memory. Cache scopes are useful for reducing load from repeated requests or those with large payloads.
The validation module provides an easy way to verify message content matches criteria. It has advantages over filters like providing traceability through customizable exception messages and types. Validators throw ValidationExceptions by default but allow customizing the exception and message. Validators can be used via message processors or MEL functions. Common validators validate fields like emails, sizes, numbers, and check for empty or null values. The All validator allows validating multiple conditions and returning a single error with all failure descriptions.
The Schema Validation filter validates XML inputs against an XSD schema. It is commonly placed at the start of a Mule flow to determine if the incoming message should be handled. If validation fails, the message will not continue in the flow. This filter returns a true or false based on validation and can be wrapped in a message filter to throw exceptions or route to another flow if validation fails. The returnResult parameter controls whether the XML payload is retained if validation passes.
The JSON Schema validator evaluates JSON payloads at runtime by matching them against a referenced JSON schema located either locally or via external URI. If the payload does not comply with the schema, a JsonSchemaValidationException will be raised. Using the validator involves adding a <json:validate-schema> element that references the schema file location. Successful payloads will pass through while non-compliant payloads will trigger the exception.
The document discusses using the Parse Template component in Mule to load a template file containing MEL expressions into the payload. It provides examples of using values from the payload, flow variables, and inbound properties in the template. It then gives an example of using a parse template to load an external file and populate fields in it with values from the Mule message before setting it as the payload.
This document provides a tutorial on integrating Apache ActiveMQ with MuleSoft Mule for messaging. It describes creating two flows - a write flow that uses an HTTP inbound endpoint to send messages to an ActiveMQ queue via a JMS outbound endpoint, and a read flow that uses a JMS inbound endpoint to receive messages from the queue. It includes code examples and steps for setting up the project and running the sample application.
Generative Artificial Intelligence (GenAI) in BusinessDr. Tathagat Varma
My talk for the Indian School of Business (ISB) Emerging Leaders Program Cohort 9. In this talk, I discussed key issues around adoption of GenAI in business - benefits, opportunities and limitations. I also discussed how my research on Theory of Cognitive Chasms helps address some of these issues
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxJustin Reock
Building 10x Organizations with Modern Productivity Metrics
10x developers may be a myth, but 10x organizations are very real, as proven by the influential study performed in the 1980s, ‘The Coding War Games.’
Right now, here in early 2025, we seem to be experiencing YAPP (Yet Another Productivity Philosophy), and that philosophy is converging on developer experience. It seems that with every new method we invent for the delivery of products, whether physical or virtual, we reinvent productivity philosophies to go alongside them.
But which of these approaches actually work? DORA? SPACE? DevEx? What should we invest in and create urgency behind today, so that we don’t find ourselves having the same discussion again in a decade?
This is the keynote of the Into the Box conference, highlighting the release of the BoxLang JVM language, its key enhancements, and its vision for the future.
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell
With expertise in data architecture, performance tracking, and revenue forecasting, Andrew Marnell plays a vital role in aligning business strategies with data insights. Andrew Marnell’s ability to lead cross-functional teams ensures businesses achieve sustainable growth and operational excellence.
Procurement Insights Cost To Value Guide.pptxJon Hansen
Procurement Insights integrated Historic Procurement Industry Archives, serves as a powerful complement — not a competitor — to other procurement industry firms. It fills critical gaps in depth, agility, and contextual insight that most traditional analyst and association models overlook.
Learn more about this value- driven proprietary service offering here.
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxAnoop Ashok
In today's fast-paced retail environment, efficiency is key. Every minute counts, and every penny matters. One tool that can significantly boost your store's efficiency is a well-executed planogram. These visual merchandising blueprints not only enhance store layouts but also save time and money in the process.
Role of Data Annotation Services in AI-Powered ManufacturingAndrew Leo
From predictive maintenance to robotic automation, AI is driving the future of manufacturing. But without high-quality annotated data, even the smartest models fall short.
Discover how data annotation services are powering accuracy, safety, and efficiency in AI-driven manufacturing systems.
Precision in data labeling = Precision on the production floor.
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfAbi john
Analyze the growth of meme coins from mere online jokes to potential assets in the digital economy. Explore the community, culture, and utility as they elevate themselves to a new era in cryptocurrency.
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfSoftware Company
Explore the benefits and features of advanced logistics management software for businesses in Riyadh. This guide delves into the latest technologies, from real-time tracking and route optimization to warehouse management and inventory control, helping businesses streamline their logistics operations and reduce costs. Learn how implementing the right software solution can enhance efficiency, improve customer satisfaction, and provide a competitive edge in the growing logistics sector of Riyadh.
HCL Nomad Web – Best Practices and Managing Multiuser Environmentspanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-nomad-web-best-practices-and-managing-multiuser-environments/
HCL Nomad Web is heralded as the next generation of the HCL Notes client, offering numerous advantages such as eliminating the need for packaging, distribution, and installation. Nomad Web client upgrades will be installed “automatically” in the background. This significantly reduces the administrative footprint compared to traditional HCL Notes clients. However, troubleshooting issues in Nomad Web present unique challenges compared to the Notes client.
Join Christoph and Marc as they demonstrate how to simplify the troubleshooting process in HCL Nomad Web, ensuring a smoother and more efficient user experience.
In this webinar, we will explore effective strategies for diagnosing and resolving common problems in HCL Nomad Web, including
- Accessing the console
- Locating and interpreting log files
- Accessing the data folder within the browser’s cache (using OPFS)
- Understand the difference between single- and multi-user scenarios
- Utilizing Client Clocking
Technology Trends in 2025: AI and Big Data AnalyticsInData Labs
At InData Labs, we have been keeping an ear to the ground, looking out for AI-enabled digital transformation trends coming our way in 2025. Our report will provide a look into the technology landscape of the future, including:
-Artificial Intelligence Market Overview
-Strategies for AI Adoption in 2025
-Anticipated drivers of AI adoption and transformative technologies
-Benefits of AI and Big data for your business
-Tips on how to prepare your business for innovation
-AI and data privacy: Strategies for securing data privacy in AI models, etc.
Download your free copy nowand implement the key findings to improve your business.
TrsLabs - Fintech Product & Business ConsultingTrs Labs
Hybrid Growth Mandate Model with TrsLabs
Strategic Investments, Inorganic Growth, Business Model Pivoting are critical activities that business don't do/change everyday. In cases like this, it may benefit your business to choose a temporary external consultant.
An unbiased plan driven by clearcut deliverables, market dynamics and without the influence of your internal office equations empower business leaders to make right choices.
Getting things done within a budget within a timeframe is key to Growing Business - No matter whether you are a start-up or a big company
Talk to us & Unlock the competitive advantage
AI and Data Privacy in 2025: Global TrendsInData Labs
In this infographic, we explore how businesses can implement effective governance frameworks to address AI data privacy. Understanding it is crucial for developing effective strategies that ensure compliance, safeguard customer trust, and leverage AI responsibly. Equip yourself with insights that can drive informed decision-making and position your organization for success in the future of data privacy.
This infographic contains:
-AI and data privacy: Key findings
-Statistics on AI data privacy in the today’s world
-Tips on how to overcome data privacy challenges
-Benefits of AI data security investments.
Keep up-to-date on how AI is reshaping privacy standards and what this entails for both individuals and organizations.
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Impelsys Inc.
Impelsys provided a robust testing solution, leveraging a risk-based and requirement-mapped approach to validate ICU Connect and CritiXpert. A well-defined test suite was developed to assess data communication, clinical data collection, transformation, and visualization across integrated devices.
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveScyllaDB
Want to learn practical tips for designing systems that can scale efficiently without compromising speed?
Join us for a workshop where we’ll address these challenges head-on and explore how to architect low-latency systems using Rust. During this free interactive workshop oriented for developers, engineers, and architects, we’ll cover how Rust’s unique language features and the Tokio async runtime enable high-performance application development.
As you explore key principles of designing low-latency systems with Rust, you will learn how to:
- Create and compile a real-world app with Rust
- Connect the application to ScyllaDB (NoSQL data store)
- Negotiate tradeoffs related to data modeling and querying
- Manage and monitor the database for consistently low latencies
2. Mule Message Enricher is one of the scopes in Mule which allows the
current message to be augmented using data from a separate
resource, which we call the Enrichment Resource. The Mule
implementation of the Enrichment Resource (a source of data to
augment the current message) can be any message processor.
In simple language, we can say a message enricher
enriches the current payload with some additional message or
information and this is done without disturbing the current payload.
Enricher is used if the target system needs more information than the
source system can provide. It enriches the Mule message by calling an
external system or doing some transformation to the existing payload
and saving it into some scope of variable, like session, outbound, or
invocation, and the transformation happening in the enricher 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.
9/3/2017 Ankit Lawaniya 2
4. The Mule Message Enricher is designed for performing interactions like
calling an outbound endpoint and bringing the result back to the main
flow, which will be used to add the additional information into the
existing payload.
One common scenario involves the need to enrich an incoming message
with information that isn’t provided by the source system. You can use a
content enricher if the target system needs more information than the
source system can provide.
Mule Message Enricher allows the current message to be used in
performing a particular task separately without disturbing the original
message. Mule Message Enricher is best used in the case when you do not
want to lose your existing payload.
Example: If, in your flow, if you need to call an external service with an HTTP
outbound/HTTP request component in middle of the flow after getting the
response from the HTTP external service call you will find that your current
payload is modified with the response of the external service, but you didn't
want to change or disturb the existing payload. In that case, we can wrap our
HTTP outbound/HTTP request component inside the enricher and it will
make a call to the external system, store the result and your existing payload
will not be modified.
9/3/2017 Ankit Lawaniya 4
5. Below is the step by step process to demonstrate
how Message Enricher works.
Enricher sends a copy of the original message
into the processor.
The original message waits.
The copy is processed.
The copy's response is a message.
Part(s) of the response are added to part(s) of
the original message.
The enriched message moves forward.
9/3/2017 Ankit Lawaniya 5
6. The way in which the message is enriched (or modified) is by
explicitly configuring mappings (source->target) between the result
from the Enrichment Resource and the message using Mule
Expressions. Mule Expressions are used to both select the value to be
extracted from the result that comes back from the Enrichment
Resource (source) and to define where this value to be inserted into
the message (target). The default source, if not configured, is the
payload of the result from the Enrichment Resource.
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.
9/3/2017 Ankit Lawaniya 6
7. IMP Note: As only one component can reside inside Message Enricher,
use of processor chain is recommended if more components are needed to
reside inside Message Enricher.
Let’s walk through how to use Mule Message Enricher in application. In this
example, we are receiving the JSON Request consisting Employee data with
id and role of the employee through HTTP call from the REST client. Our
objective here is to add the additional information which is the name of the
employee to the source data. For this, we will be calling Database to get the
information about the employee name and that will be added in the
source JSON to be sent back to the user.
9/3/2017 Ankit Lawaniya 7