SlideShare a Scribd company logo
A Short Introduction on
Mule Expression Language
By – Swapnil Sahu
What is Mule Expression Language?
MEL is a lightweight, Mule-specific expression language that you can use to access and evaluate the data in the
payload, properties and variables of a Mule message. Accessible and usable from within virtually every message
processor in Mule, MEL enables you to quickly and elegantly filter, route, or otherwise act upon the different parts
of the Mule message object.
Benefits of Using MEL
• MEL is an expression language that provides a consistent, standardized way for developers to work with a Mule
message’s payload, properties and variables.
• MEL makes use of Mule-specific context objects, you can code it with the help of auto-complete
• Great tool for evaluating expressions in your flows
• Most importantly, MEL enforces consistency when accessing information in the Mule message: rather than using
multiple expression evaluators, you can use MEL, the default expression evaluator, to consistently access and
manipulate information.
• MEL expressions work within message processors to modify the way the processors act upon the message such
as routing or filtering.
Difference between MEL & scripting
language
An expression language, such as MEL, is similar, but not the same as, a scripting language: it allows you to write
short scripts that resolve dynamically to get values, set values, or perform an operation on data. There is an
overlap in functionality between an expression language and a scripting language, but scripting languages are
generally more useful if you are writing something complex enough to require more than just a few lines of code,
or if you need to include conditional logic. If, however, you need to get or set values, invoke methods, or perform
functions, you can do so quickly and easily using an expression language.
Getting Started with MEL
#[Payload]
#[Message.Payload]
#[Payload.inboundProperties.’http.status’]
#[Payload.outboundProperties.’http.queryParam’]
Expressions in Mule
Mule Expression Language (MEL), which implements a single set of syntax rules that
no longer contains an evaluator. The evaluator, by default, is MEL itself, and it can
interpret expressions formerly associated with dozens of different evaluators. MEL
expressions are written according to the following format: #[expression]
Thank You

More Related Content

PPTX
Xml attribute blowup
PPTX
Java Basics
DOCX
Bt0083, server side programming theory
DOCX
Bt0083, server side programming theory
PPTX
Creating a custom connector in mule
PPTX
A short introduction on anypoint studio routers
PPTX
A Short Introduction of Mule ESB
PPTX
A short introduction on anypoint transformers
Xml attribute blowup
Java Basics
Bt0083, server side programming theory
Bt0083, server side programming theory
Creating a custom connector in mule
A short introduction on anypoint studio routers
A Short Introduction of Mule ESB
A short introduction on anypoint transformers

Similar to A short introduction on mule expression language (20)

PPTX
Mule expression language
PPTX
Mule mel 1
PPTX
Mule expression language - Part 1
PPTX
Expression language
PPTX
Mule esb kranthi
PPTX
Mule esb kranthi
PPTX
Ashok mule esb
PPTX
Mule slides
PPTX
Sai mule esb batch
PPTX
Mule esb
PPTX
PPTX
PPTX
Esb process
PPTX
Niranjan mule esb
PPTX
Mule esb naveen
PPTX
Srilekha mule esb
PPTX
Mule fundamentals
PPTX
Mule in a nutshell
PPTX
Expression language in mule
PPTX
Mule expression language
Mule expression language
Mule mel 1
Mule expression language - Part 1
Expression language
Mule esb kranthi
Mule esb kranthi
Ashok mule esb
Mule slides
Sai mule esb batch
Mule esb
Esb process
Niranjan mule esb
Mule esb naveen
Srilekha mule esb
Mule fundamentals
Mule in a nutshell
Expression language in mule
Mule expression language
Ad

Recently uploaded (20)

PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
AI in Product Development-omnex systems
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Nekopoi APK 2025 free lastest update
PDF
System and Network Administraation Chapter 3
PDF
top salesforce developer skills in 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
ai tools demonstartion for schools and inter college
PPTX
history of c programming in notes for students .pptx
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Introduction to Artificial Intelligence
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Design an Analysis of Algorithms II-SECS-1021-03
Odoo POS Development Services by CandidRoot Solutions
How to Choose the Right IT Partner for Your Business in Malaysia
AI in Product Development-omnex systems
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Operating system designcfffgfgggggggvggggggggg
PTS Company Brochure 2025 (1).pdf.......
Nekopoi APK 2025 free lastest update
System and Network Administraation Chapter 3
top salesforce developer skills in 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
VVF-Customer-Presentation2025-Ver1.9.pptx
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
ai tools demonstartion for schools and inter college
history of c programming in notes for students .pptx
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
How Creative Agencies Leverage Project Management Software.pdf
Introduction to Artificial Intelligence
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
2025 Textile ERP Trends: SAP, Odoo & Oracle
Design an Analysis of Algorithms II-SECS-1021-03
Ad

A short introduction on mule expression language

  • 1. A Short Introduction on Mule Expression Language By – Swapnil Sahu
  • 2. What is Mule Expression Language? MEL is a lightweight, Mule-specific expression language that you can use to access and evaluate the data in the payload, properties and variables of a Mule message. Accessible and usable from within virtually every message processor in Mule, MEL enables you to quickly and elegantly filter, route, or otherwise act upon the different parts of the Mule message object.
  • 3. Benefits of Using MEL • MEL is an expression language that provides a consistent, standardized way for developers to work with a Mule message’s payload, properties and variables. • MEL makes use of Mule-specific context objects, you can code it with the help of auto-complete • Great tool for evaluating expressions in your flows • Most importantly, MEL enforces consistency when accessing information in the Mule message: rather than using multiple expression evaluators, you can use MEL, the default expression evaluator, to consistently access and manipulate information. • MEL expressions work within message processors to modify the way the processors act upon the message such as routing or filtering.
  • 4. Difference between MEL & scripting language An expression language, such as MEL, is similar, but not the same as, a scripting language: it allows you to write short scripts that resolve dynamically to get values, set values, or perform an operation on data. There is an overlap in functionality between an expression language and a scripting language, but scripting languages are generally more useful if you are writing something complex enough to require more than just a few lines of code, or if you need to include conditional logic. If, however, you need to get or set values, invoke methods, or perform functions, you can do so quickly and easily using an expression language.
  • 5. Getting Started with MEL #[Payload] #[Message.Payload] #[Payload.inboundProperties.’http.status’] #[Payload.outboundProperties.’http.queryParam’]
  • 6. Expressions in Mule Mule Expression Language (MEL), which implements a single set of syntax rules that no longer contains an evaluator. The evaluator, by default, is MEL itself, and it can interpret expressions formerly associated with dozens of different evaluators. MEL expressions are written according to the following format: #[expression]