SlideShare a Scribd company logo
1 of 6
MULE TRANSFORMERS
A Mule transformer has simple behavior. It
strictly enforces the types of data it receives and
outputs. This can be relaxed by configuration: in
that case, a transformer won’t report an exception
for bad input, but will return the original message
unchanged, without enforcing the expected result
type (return class) .
A transformer can alter a message in different ways:
 Payload type transformation —The data type of
the message payload is transformed from one
form to another. For example, a java.util.Mapis
transformed into a javax.jms.MapMessage.
 Payload format transformation —The data
format of the message payload is
transformed from one form to another. For
example, a DocBook XML instance is
transformed into an XSL-FO instance.
 Properties transformation —The properties
of the message are modified, whether by
adding new properties or by removing,
renaming, or changing the values of existing
properties. For example, a message needs a
particular property to be set before being
sent to a JMS destination.
Mule is extremely rich in terms of available
transformers: each Mule library you’ll use in your
project can potentially contain transformers:
 The Mule core contains a wealth of general-
purpose transformers.
 Modules can also contain transformers.
 Transports may provide transformers as well.
A transformer element supports two common
configuration attributes, in addition to its name:
 ignoreBadInput—This instructs the transformer to
perform no action and return the message
unchanged in case its type isn’t supported.
 returnClass—This attribute allows you to
configure the fully qualified name of the type of
class that the transformer is expected to return.
This is useful if you want to strictly enforce a
stricter type than the transformer’s default (for
example, a transformer might target
java.lang.Object whereas you want it to produce
only java.util.Mapobjects)
THANK YOU

More Related Content

What's hot

What's hot (20)

Xml to xml transformation
Xml to xml transformationXml to xml transformation
Xml to xml transformation
 
Mule Schema Validation Filter
Mule Schema Validation FilterMule Schema Validation Filter
Mule Schema Validation Filter
 
Clustering concepts
Clustering conceptsClustering concepts
Clustering concepts
 
Clustering concepts
Clustering conceptsClustering concepts
Clustering concepts
 
Mule JMS transport
Mule JMS transportMule JMS transport
Mule JMS transport
 
Mule Message Chunk Splitter
Mule Message Chunk SplitterMule Message Chunk Splitter
Mule Message Chunk Splitter
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Mule mel 5_tips
Mule mel 5_tipsMule mel 5_tips
Mule mel 5_tips
 
Mule advanced
Mule advancedMule advanced
Mule advanced
 
Mule
MuleMule
Mule
 
Mule message structure and varibles scopes
Mule message structure and varibles scopesMule message structure and varibles scopes
Mule message structure and varibles scopes
 
Mule esb2
Mule esb2Mule esb2
Mule esb2
 
Mule Resequencer Filter
Mule Resequencer FilterMule Resequencer Filter
Mule Resequencer Filter
 
Mule flows
Mule flowsMule flows
Mule flows
 
Routing in mule
Routing in muleRouting in mule
Routing in mule
 
Mule message structure
Mule message structureMule message structure
Mule message structure
 
Mule rabbitmq
Mule rabbitmqMule rabbitmq
Mule rabbitmq
 
Mule Message Chunk Aggregator
Mule Message Chunk AggregatorMule Message Chunk Aggregator
Mule Message Chunk Aggregator
 
Reliable messaging pattern
Reliable messaging patternReliable messaging pattern
Reliable messaging pattern
 
Mule high availability
Mule high availabilityMule high availability
Mule high availability
 

Viewers also liked

小児科抄読会
小児科抄読会小児科抄読会
小児科抄読会
sho ishigki
 

Viewers also liked (12)

Mule working with components
Mule   working with componentsMule   working with components
Mule working with components
 
Mule with jms
Mule with jmsMule with jms
Mule with jms
 
Ftp connector
Ftp connectorFtp connector
Ftp connector
 
Mule execution units
Mule execution unitsMule execution units
Mule execution units
 
Hdfs connector
Hdfs connectorHdfs connector
Hdfs connector
 
Cover kp
Cover kpCover kp
Cover kp
 
Page 49 edtech
Page 49 edtechPage 49 edtech
Page 49 edtech
 
Imap connector
Imap connectorImap connector
Imap connector
 
Mobile and IoT testing
Mobile and IoT testingMobile and IoT testing
Mobile and IoT testing
 
小児科抄読会
小児科抄読会小児科抄読会
小児科抄読会
 
頭部外傷 低Na血症 SIADH CSWS
頭部外傷 低Na血症 SIADH CSWS頭部外傷 低Na血症 SIADH CSWS
頭部外傷 低Na血症 SIADH CSWS
 
Hyponatremia 低ナトリウム血症
Hyponatremia 低ナトリウム血症Hyponatremia 低ナトリウム血症
Hyponatremia 低ナトリウム血症
 

Similar to Mule transformers

Similar to Mule transformers (20)

Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule esb transformers
Mule esb transformersMule esb transformers
Mule esb transformers
 
Mule message
Mule messageMule message
Mule message
 
Message structure
Message structureMessage structure
Message structure
 
Muletransformers
MuletransformersMuletransformers
Muletransformers
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule jms
Mule   jmsMule   jms
Mule jms
 
Mule: Java Transformer
Mule: Java TransformerMule: Java Transformer
Mule: Java Transformer
 
Mule XSLT Transformer
Mule XSLT TransformerMule XSLT Transformer
Mule XSLT Transformer
 
Mule architecture
Mule   architectureMule   architecture
Mule architecture
 
Mule architecture
Mule   architectureMule   architecture
Mule architecture
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_components
 
Mule any point studio
Mule any point studioMule any point studio
Mule any point studio
 
XML Bible
XML BibleXML Bible
XML Bible
 
Xslt with mule
Xslt with muleXslt with mule
Xslt with mule
 
Xml to xml transformation in mule
Xml to xml transformation in muleXml to xml transformation in mule
Xml to xml transformation in mule
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

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
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

Mule transformers

  • 2. A Mule transformer has simple behavior. It strictly enforces the types of data it receives and outputs. This can be relaxed by configuration: in that case, a transformer won’t report an exception for bad input, but will return the original message unchanged, without enforcing the expected result type (return class) . A transformer can alter a message in different ways:  Payload type transformation —The data type of the message payload is transformed from one form to another. For example, a java.util.Mapis transformed into a javax.jms.MapMessage.
  • 3.  Payload format transformation —The data format of the message payload is transformed from one form to another. For example, a DocBook XML instance is transformed into an XSL-FO instance.  Properties transformation —The properties of the message are modified, whether by adding new properties or by removing, renaming, or changing the values of existing properties. For example, a message needs a particular property to be set before being sent to a JMS destination.
  • 4. Mule is extremely rich in terms of available transformers: each Mule library you’ll use in your project can potentially contain transformers:  The Mule core contains a wealth of general- purpose transformers.  Modules can also contain transformers.  Transports may provide transformers as well.
  • 5. A transformer element supports two common configuration attributes, in addition to its name:  ignoreBadInput—This instructs the transformer to perform no action and return the message unchanged in case its type isn’t supported.  returnClass—This attribute allows you to configure the fully qualified name of the type of class that the transformer is expected to return. This is useful if you want to strictly enforce a stricter type than the transformer’s default (for example, a transformer might target java.lang.Object whereas you want it to produce only java.util.Mapobjects)