1. Message Enricher Example
The Mule Message Enricher allows the current message to
be reflexive using data from a separate resource which we
call it as Enrichment Resource. This Enrichment Resource
can be any Message Processor and should always return a
result, if it doesn’t then the Enricher will simply leave the
current message untouched.
2. • The Message Processor that implements the
Enrichment Resource is invoked with a copy of
the current message along with any flow or
session variables that are present. Any
modification to the current message and it’s
properties and attachments or flow or session
variables will not be reflected in the flow
where the Enricher is configured.
3. • Mule currently supports enrichment of flow
variables and message headers only.
• In simple language, we can say a message
enricher enrich the current payload with some
additional message and this is done without
disturbing the actual payload..
4. • Message Enricher will allow only one message
processor inside it if you want multiple
message processors needs to be configured
inside enricher, then use the Processor-chain
inside message enricher and inside processor-
chain use multiple message processors.