SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

La actualidad más candente (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
 

Destacado

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

Destacado (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 a Mule transformers

Similar a 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
 

Último

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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Último (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
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
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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 ...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 

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)