SlideShare a Scribd company logo
Mule Transformers
Instructions
• Prepares a message for further processing by
enhancing or altering the contents of the
message properties, variables, or payload
• Use a pre-built transformer to perform a
standard data conversion
Example
• Message source in a flow receives data in XML
format, but a downstream message processor
expects a Java object
• Use an XML-to-Object transformer to convert
the format of the message payload
Transformer Library
• Mule provides a set of standard transformers
to handle the most common data
transformation scenarios
• If Mule doesn’t have the particular
transformer, can arrange several transformers
in a sequence to achieve the output you need
Transformer Library Example
• Implement an A-to-C transformation but no such
transformer exists
• Arrange a sequence – A-to-B, B-to-C – which
effectively simulates an A-to-C transformer
• Example:
– convert XML to JSON, use an XML-to-Object
transformer followed by an Object-to-JSON
transformervely simulates an A-to-C transformer
Transformers categories - Java Object
• Each transformer in this group changes a Java
object into another Java object
• A Java object into a non-Java data type (such
as an HTTP request), or vice versa
• Example Transformers:
– JSON to Object
– XML to Object
Transformers categories - Content
• Transformers modifies messages by adding to,
deleting from, or converting a message
payload
• Example Transformers:
– Append String
– Expression
– Parse Template
– XSLT
Transformers categories - SAP
• Change SAP objects (JCo functions or IDoc
documents) into XML representations, or vice
versa
• Example Transformers:
– SAP Object to XML
– XML to SAP Function (BAPI)
– XML to SAP IDoc
Transformers categories - Script
• Utilizes a custom script to perform the
transformation
• Just add one of these to your flow, then write a script
in your favorite language to convert data as needed
• Example Transformers:
– Groovy
– JavaScript
– Python
– Ruby
– Script
Transformers categories - Properties,
Variables, and Attachments
• Add, remove, or copy properties, variables, and
attachments on the message
• Message processors doesn’t so much transform as
manipulate or enrich the contents of the message
header
• Example Transformers:
– Attachment
– Property
– Session Variable
– Variable
DataWeave Transformer
• Overview DataWeave:
– Simple, powerful tool used to query and transform data
inside of Mule
– Supports a variety of transformations: simple one-to-one,
one-to-many or many-to-one mappings from an
assortment of data structures
DataWeave Transformer
• Map an input field, such as last_name, to a different
output field, such as family_name
• Map multiple fields, such as title, first_name, and last_name,
to a composite output field such as full_name
• Retrieve session state information in a message to
facilitate conditional message routing
• Evaluation to facilitate conditional value recalculation
• Look up information in tables or other flows
Question and answer

More Related Content

What's hot

Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts components
kunal vishe
 
Rabbit mq in mule
Rabbit mq in muleRabbit mq in mule
Rabbit mq in mule
himajareddys
 
Mule esb usecase
Mule esb usecaseMule esb usecase
Mule esb usecase
charan teja R
 
Anypoint mq queues and exchanges
Anypoint mq queues and exchangesAnypoint mq queues and exchanges
Anypoint mq queues and exchanges
Son Nguyen
 
Mule esb introduction
Mule esb introductionMule esb introduction
Mule esb introduction
Praneethchampion
 
Mule Expression Transformer
Mule Expression TransformerMule Expression Transformer
Mule Expression Transformer
Ankush Sharma
 
Mule threading profile & processing strategy
Mule threading profile & processing strategyMule threading profile & processing strategy
Mule threading profile & processing strategy
chetan singhal
 
WSDL in Mule Esb
WSDL in Mule EsbWSDL in Mule Esb
WSDL in Mule Esb
Anand kalla
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
Achyuta Lakshmi
 
Overview of Mule
Overview of MuleOverview of Mule
Overview of Mule
mdfkhan625
 
Mule Message Chunk Aggregator
Mule Message Chunk AggregatorMule Message Chunk Aggregator
Mule Message Chunk Aggregator
Ankush Sharma
 
Mule TCP Component
Mule TCP ComponentMule TCP Component
Mule TCP Component
Ankush Sharma
 
Mule soa
Mule soaMule soa
Mule soa
Son Nguyen
 
Vm component in mule
Vm component in muleVm component in mule
Vm component in mule
javeed_mhd
 
Junit in mule demo
Junit in mule demo Junit in mule demo
Junit in mule demo
javeed_mhd
 
Mule rabbit mq
Mule rabbit mqMule rabbit mq
Mule rabbit mq
D.Rajesh Kumar
 
Mule soa
Mule soaMule soa
Mule soa
D.Rajesh Kumar
 
Mule rabbitmq
Mule rabbitmqMule rabbitmq
Mule rabbitmq
Praneethchampion
 

What's hot (18)

Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts components
 
Rabbit mq in mule
Rabbit mq in muleRabbit mq in mule
Rabbit mq in mule
 
Mule esb usecase
Mule esb usecaseMule esb usecase
Mule esb usecase
 
Anypoint mq queues and exchanges
Anypoint mq queues and exchangesAnypoint mq queues and exchanges
Anypoint mq queues and exchanges
 
Mule esb introduction
Mule esb introductionMule esb introduction
Mule esb introduction
 
Mule Expression Transformer
Mule Expression TransformerMule Expression Transformer
Mule Expression Transformer
 
Mule threading profile & processing strategy
Mule threading profile & processing strategyMule threading profile & processing strategy
Mule threading profile & processing strategy
 
WSDL in Mule Esb
WSDL in Mule EsbWSDL in Mule Esb
WSDL in Mule Esb
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
 
Overview of Mule
Overview of MuleOverview of Mule
Overview of Mule
 
Mule Message Chunk Aggregator
Mule Message Chunk AggregatorMule Message Chunk Aggregator
Mule Message Chunk Aggregator
 
Mule TCP Component
Mule TCP ComponentMule TCP Component
Mule TCP Component
 
Mule soa
Mule soaMule soa
Mule soa
 
Vm component in mule
Vm component in muleVm component in mule
Vm component in mule
 
Junit in mule demo
Junit in mule demo Junit in mule demo
Junit in mule demo
 
Mule rabbit mq
Mule rabbit mqMule rabbit mq
Mule rabbit mq
 
Mule soa
Mule soaMule soa
Mule soa
 
Mule rabbitmq
Mule rabbitmqMule rabbitmq
Mule rabbitmq
 

Viewers also liked

Mule message structure and varibles scopes
Mule message structure and varibles scopesMule message structure and varibles scopes
Mule message structure and varibles scopes
Ramakrishna kapa
 
Data weave more operations
Data weave more operationsData weave more operations
Data weave more operations
Ramakrishna kapa
 
Muleflowarchitecture
MuleflowarchitectureMuleflowarchitecture
Muleflowarchitecture
vijaynerd
 
Dataweave types operators
Dataweave types operatorsDataweave types operators
Dataweave types operators
Ramakrishna kapa
 
Introduction To Mule
Introduction To MuleIntroduction To Mule
Introduction To Mule
Roy Prins
 
How to connect redis and mule esb using spring data redis module
How to connect redis and mule esb using spring data redis moduleHow to connect redis and mule esb using spring data redis module
How to connect redis and mule esb using spring data redis module
Priyobroto Ghosh (Mule ESB Certified)
 
mule custom aggregator
mule   custom aggregatormule   custom aggregator
mule custom aggregator
Paolo Mojica
 
Data weave in mule
Data weave in muleData weave in mule
Data weave in mule
Ramakrishna kapa
 
Operators in mule dataweave
Operators in mule dataweaveOperators in mule dataweave
Operators in mule dataweave
Ramakrishna kapa
 
Muleflowarchitecturepart2
Muleflowarchitecturepart2Muleflowarchitecturepart2
Muleflowarchitecturepart2
vijaynerd
 
Load balancer in mule
Load balancer in muleLoad balancer in mule
Load balancer in mule
Ramakrishna kapa
 
Muleesb
MuleesbMuleesb
Mule error handling
Mule error handlingMule error handling
Mule error handling
Karthik Selvaraj
 
Basic math operations using dataweave
Basic math operations using dataweaveBasic math operations using dataweave
Basic math operations using dataweave
Ramakrishna kapa
 
Anypoint platform architecture and components
Anypoint platform architecture and componentsAnypoint platform architecture and components
Anypoint platform architecture and components
D.Rajesh Kumar
 
Mule caching strategy with redis cache
Mule caching strategy with redis cacheMule caching strategy with redis cache
Mule caching strategy with redis cache
Priyobroto Ghosh (Mule ESB Certified)
 
Introduction to dataweave
Introduction to dataweaveIntroduction to dataweave
Introduction to dataweave
Swati Deshpande
 
Mule integration
Mule integrationMule integration
Mule integration
Son Nguyen
 
Mule any point studio
Mule any point studioMule any point studio
Mule any point studio
Son Nguyen
 
Mule message
Mule messageMule message
Mule message
Son Nguyen
 

Viewers also liked (20)

Mule message structure and varibles scopes
Mule message structure and varibles scopesMule message structure and varibles scopes
Mule message structure and varibles scopes
 
Data weave more operations
Data weave more operationsData weave more operations
Data weave more operations
 
Muleflowarchitecture
MuleflowarchitectureMuleflowarchitecture
Muleflowarchitecture
 
Dataweave types operators
Dataweave types operatorsDataweave types operators
Dataweave types operators
 
Introduction To Mule
Introduction To MuleIntroduction To Mule
Introduction To Mule
 
How to connect redis and mule esb using spring data redis module
How to connect redis and mule esb using spring data redis moduleHow to connect redis and mule esb using spring data redis module
How to connect redis and mule esb using spring data redis module
 
mule custom aggregator
mule   custom aggregatormule   custom aggregator
mule custom aggregator
 
Data weave in mule
Data weave in muleData weave in mule
Data weave in mule
 
Operators in mule dataweave
Operators in mule dataweaveOperators in mule dataweave
Operators in mule dataweave
 
Muleflowarchitecturepart2
Muleflowarchitecturepart2Muleflowarchitecturepart2
Muleflowarchitecturepart2
 
Load balancer in mule
Load balancer in muleLoad balancer in mule
Load balancer in mule
 
Muleesb
MuleesbMuleesb
Muleesb
 
Mule error handling
Mule error handlingMule error handling
Mule error handling
 
Basic math operations using dataweave
Basic math operations using dataweaveBasic math operations using dataweave
Basic math operations using dataweave
 
Anypoint platform architecture and components
Anypoint platform architecture and componentsAnypoint platform architecture and components
Anypoint platform architecture and components
 
Mule caching strategy with redis cache
Mule caching strategy with redis cacheMule caching strategy with redis cache
Mule caching strategy with redis cache
 
Introduction to dataweave
Introduction to dataweaveIntroduction to dataweave
Introduction to dataweave
 
Mule integration
Mule integrationMule integration
Mule integration
 
Mule any point studio
Mule any point studioMule any point studio
Mule any point studio
 
Mule message
Mule messageMule message
Mule message
 

Similar to Muletransformers

Mule concepts transformers
Mule concepts transformersMule concepts transformers
Mule concepts transformers
kunal vishe
 
Mule overview
Mule overviewMule overview
Mule overview
Manav Prasad
 
Mule: Java Transformer
Mule: Java TransformerMule: Java Transformer
Mule: Java Transformer
Sulthony Hartanto
 
Mule transformers
Mule transformersMule transformers
Mule transformers
Thang Loi
 
Mule transformers
Mule transformersMule transformers
Mule transformers
Krishna_in
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_components
Paaras Baru
 
Mule message
Mule messageMule message
Mule message
kunal vishe
 
Mule overview
Mule overviewMule overview
Mule overview
ppts123456
 
Ashok mule esb
Ashok mule esbAshok mule esb
Ashok mule esb
srisatyasai037
 
Mule transformers
Mule transformersMule transformers
Mule transformers
Padmanabhan Natarajan, CSM
 
Mule data weave_2
Mule data weave_2Mule data weave_2
Mule data weave_2
kunal vishe
 
Srilekha mule esb
Srilekha mule esbSrilekha mule esb
Srilekha mule esb
srilekha2820
 
Muledataweave10 161029032456-161119152200
Muledataweave10 161029032456-161119152200Muledataweave10 161029032456-161119152200
Muledataweave10 161029032456-161119152200
harika thamishetti
 
Mule dataweave
Mule dataweaveMule dataweave
Mule dataweave
Son Nguyen
 
XSLT
XSLTXSLT
Mule overview
Mule overviewMule overview
Mule overview
Mohammed625
 
Mule Overview
Mule OverviewMule Overview
Mule Overview
AbdulImrankhan7
 
Puppet - The IT automation software
Puppet - The IT automation softwarePuppet - The IT automation software
Puppet - The IT automation software
agenedy
 
Mule transformers
Mule transformersMule transformers
Mule transformers
kiranvanga
 
Mule
MuleMule

Similar to Muletransformers (20)

Mule concepts transformers
Mule concepts transformersMule concepts transformers
Mule concepts transformers
 
Mule overview
Mule overviewMule overview
Mule overview
 
Mule: Java Transformer
Mule: Java TransformerMule: Java Transformer
Mule: Java Transformer
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_components
 
Mule message
Mule messageMule message
Mule message
 
Mule overview
Mule overviewMule overview
Mule overview
 
Ashok mule esb
Ashok mule esbAshok mule esb
Ashok mule esb
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule data weave_2
Mule data weave_2Mule data weave_2
Mule data weave_2
 
Srilekha mule esb
Srilekha mule esbSrilekha mule esb
Srilekha mule esb
 
Muledataweave10 161029032456-161119152200
Muledataweave10 161029032456-161119152200Muledataweave10 161029032456-161119152200
Muledataweave10 161029032456-161119152200
 
Mule dataweave
Mule dataweaveMule dataweave
Mule dataweave
 
XSLT
XSLTXSLT
XSLT
 
Mule overview
Mule overviewMule overview
Mule overview
 
Mule Overview
Mule OverviewMule Overview
Mule Overview
 
Puppet - The IT automation software
Puppet - The IT automation softwarePuppet - The IT automation software
Puppet - The IT automation software
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule
MuleMule
Mule
 

Recently uploaded

In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Jay Das
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 

Recently uploaded (20)

In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 

Muletransformers

  • 2. Instructions • Prepares a message for further processing by enhancing or altering the contents of the message properties, variables, or payload • Use a pre-built transformer to perform a standard data conversion
  • 3. Example • Message source in a flow receives data in XML format, but a downstream message processor expects a Java object • Use an XML-to-Object transformer to convert the format of the message payload
  • 4. Transformer Library • Mule provides a set of standard transformers to handle the most common data transformation scenarios • If Mule doesn’t have the particular transformer, can arrange several transformers in a sequence to achieve the output you need
  • 5. Transformer Library Example • Implement an A-to-C transformation but no such transformer exists • Arrange a sequence – A-to-B, B-to-C – which effectively simulates an A-to-C transformer • Example: – convert XML to JSON, use an XML-to-Object transformer followed by an Object-to-JSON transformervely simulates an A-to-C transformer
  • 6. Transformers categories - Java Object • Each transformer in this group changes a Java object into another Java object • A Java object into a non-Java data type (such as an HTTP request), or vice versa • Example Transformers: – JSON to Object – XML to Object
  • 7. Transformers categories - Content • Transformers modifies messages by adding to, deleting from, or converting a message payload • Example Transformers: – Append String – Expression – Parse Template – XSLT
  • 8. Transformers categories - SAP • Change SAP objects (JCo functions or IDoc documents) into XML representations, or vice versa • Example Transformers: – SAP Object to XML – XML to SAP Function (BAPI) – XML to SAP IDoc
  • 9. Transformers categories - Script • Utilizes a custom script to perform the transformation • Just add one of these to your flow, then write a script in your favorite language to convert data as needed • Example Transformers: – Groovy – JavaScript – Python – Ruby – Script
  • 10. Transformers categories - Properties, Variables, and Attachments • Add, remove, or copy properties, variables, and attachments on the message • Message processors doesn’t so much transform as manipulate or enrich the contents of the message header • Example Transformers: – Attachment – Property – Session Variable – Variable
  • 11. DataWeave Transformer • Overview DataWeave: – Simple, powerful tool used to query and transform data inside of Mule – Supports a variety of transformations: simple one-to-one, one-to-many or many-to-one mappings from an assortment of data structures
  • 12. DataWeave Transformer • Map an input field, such as last_name, to a different output field, such as family_name • Map multiple fields, such as title, first_name, and last_name, to a composite output field such as full_name • Retrieve session state information in a message to facilitate conditional message routing • Evaluation to facilitate conditional value recalculation • Look up information in tables or other flows