SlideShare a Scribd company logo
Abhishek Jain
 List and Maps
 MEL Benefits
 Different Ways of using MEL
 Topic for next session
 Reference
A Simple Map can be created using below MEL expression example:
[‘firstname’: ‘Abhi’, ‘lastname’:’jain’]
The above example will create a map having two properties (firstname,
lastname) with the values as (Abhi, jain) respectively
On the same way arrays (Collection of Maps) can also be created
[
[‘firstname’: ‘Abhi’, ‘lastname’:’jain’]
[‘firstname’: ‘Montu’, ‘lastname’:’jain’]
[‘firstname’: ‘John’, ‘lastname’:’ anderson’]
]
-An Expression language which provides a consistent and standardized way to
developers
-Can be used easily with mule message, inbound/outbound properties, Variables
-Easy to use
-Works within message processors to decide the message routes
-Used for extracting the information
-No need to remember large syntaxes
-
MEL expression can be used for extracting the data and then decide the next course
of action i.e. these can be pretty much used inside choice routers for directing the
messages to different routes
Small example:
<choice>
<when expression="#[payload.getFlightName() == ‘Delta']">
<flow-ref name==“DeltaAirLinesProcess" />
</when>
<when expression="#[payload.getFlightName() == ‘United’']">
<flow-ref name==“UnitedAirLinesProcess" />
</when>
</choice>
MEL Can be used for extracting the values from payload, properties or context.
For example
You have several flow variables which are set (like to, cc, from, body) for sending
email message.
You can extract all the info and set it while working with one processor
<smtp:outbound-endpoint from="#[flowVars.from]" to="#[flowVars.to]"
subject="#[payload.subjectLine]" responseTimeout="10000" doc:name="SMTP"/>
Debugging in Anypoint Studio
 www.mulesoft.com
 Mule in Action
Mule soft mel_session_3
Mule soft mel_session_3

More Related Content

Viewers also liked

Mule soft filters
Mule soft filtersMule soft filters
Mule soft filters
abhipokharna
 
Victoria and Albert
Victoria and AlbertVictoria and Albert
Victoria and AlbertMaria Prince
 
Hernandez computacion
Hernandez  computacionHernandez  computacion
Hernandez computacion
aymara32135
 
Mule soft debugprogram
Mule soft debugprogramMule soft debugprogram
Mule soft debugprogram
abhipokharna
 
10 web based business model
10 web based business model 10 web based business model
10 web based business model
deepshikha gupta
 
Lammertink, Barbara (3337367) - A matter of life and birth - master thesis final
Lammertink, Barbara (3337367) - A matter of life and birth - master thesis finalLammertink, Barbara (3337367) - A matter of life and birth - master thesis final
Lammertink, Barbara (3337367) - A matter of life and birth - master thesis finalBarbara Lammertink
 
Mule soft filters_2
Mule soft filters_2Mule soft filters_2
Mule soft filters_2
abhipokharna
 
Mule soft at a glance
Mule soft at a glanceMule soft at a glance
Mule soft at a glance
abhipokharna
 
Design Skills Reinvent Fashion
Design Skills Reinvent FashionDesign Skills Reinvent Fashion
Design Skills Reinvent FashionMaria Prince
 
[Webinar] UX Research for Lean Teams
[Webinar] UX Research for Lean Teams[Webinar] UX Research for Lean Teams
[Webinar] UX Research for Lean Teams
digsiteinsights
 
Quran english translation (sahih international) oct 2016
Quran english translation (sahih international) oct 2016Quran english translation (sahih international) oct 2016
Quran english translation (sahih international) oct 2016
Abu Qasim
 
Mule soft mel_day1
Mule soft mel_day1Mule soft mel_day1
Mule soft mel_day1
abhipokharna
 
Mule soft mel_day2
Mule soft mel_day2Mule soft mel_day2
Mule soft mel_day2
abhipokharna
 
Building your Brand on a Budget
Building your Brand on a BudgetBuilding your Brand on a Budget
Building your Brand on a Budget
digsiteinsights
 
Digital or In-Person? How to Choose the Best Research Approach for the Best R...
Digital or In-Person? How to Choose the Best Research Approach for the Best R...Digital or In-Person? How to Choose the Best Research Approach for the Best R...
Digital or In-Person? How to Choose the Best Research Approach for the Best R...
digsiteinsights
 
Mule soft muleflow
Mule soft muleflowMule soft muleflow
Mule soft muleflow
abhipokharna
 

Viewers also liked (18)

Mule soft filters
Mule soft filtersMule soft filters
Mule soft filters
 
Victoria and Albert
Victoria and AlbertVictoria and Albert
Victoria and Albert
 
Hernandez computacion
Hernandez  computacionHernandez  computacion
Hernandez computacion
 
PALETAS DEL MEXICO
PALETAS DEL MEXICOPALETAS DEL MEXICO
PALETAS DEL MEXICO
 
Mule soft debugprogram
Mule soft debugprogramMule soft debugprogram
Mule soft debugprogram
 
TSG__About_Us
TSG__About_UsTSG__About_Us
TSG__About_Us
 
10 web based business model
10 web based business model 10 web based business model
10 web based business model
 
Lammertink, Barbara (3337367) - A matter of life and birth - master thesis final
Lammertink, Barbara (3337367) - A matter of life and birth - master thesis finalLammertink, Barbara (3337367) - A matter of life and birth - master thesis final
Lammertink, Barbara (3337367) - A matter of life and birth - master thesis final
 
Mule soft filters_2
Mule soft filters_2Mule soft filters_2
Mule soft filters_2
 
Mule soft at a glance
Mule soft at a glanceMule soft at a glance
Mule soft at a glance
 
Design Skills Reinvent Fashion
Design Skills Reinvent FashionDesign Skills Reinvent Fashion
Design Skills Reinvent Fashion
 
[Webinar] UX Research for Lean Teams
[Webinar] UX Research for Lean Teams[Webinar] UX Research for Lean Teams
[Webinar] UX Research for Lean Teams
 
Quran english translation (sahih international) oct 2016
Quran english translation (sahih international) oct 2016Quran english translation (sahih international) oct 2016
Quran english translation (sahih international) oct 2016
 
Mule soft mel_day1
Mule soft mel_day1Mule soft mel_day1
Mule soft mel_day1
 
Mule soft mel_day2
Mule soft mel_day2Mule soft mel_day2
Mule soft mel_day2
 
Building your Brand on a Budget
Building your Brand on a BudgetBuilding your Brand on a Budget
Building your Brand on a Budget
 
Digital or In-Person? How to Choose the Best Research Approach for the Best R...
Digital or In-Person? How to Choose the Best Research Approach for the Best R...Digital or In-Person? How to Choose the Best Research Approach for the Best R...
Digital or In-Person? How to Choose the Best Research Approach for the Best R...
 
Mule soft muleflow
Mule soft muleflowMule soft muleflow
Mule soft muleflow
 

Recently uploaded

PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 

Recently uploaded (20)

PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 

Mule soft mel_session_3

  • 2.  List and Maps  MEL Benefits  Different Ways of using MEL  Topic for next session  Reference
  • 3. A Simple Map can be created using below MEL expression example: [‘firstname’: ‘Abhi’, ‘lastname’:’jain’] The above example will create a map having two properties (firstname, lastname) with the values as (Abhi, jain) respectively On the same way arrays (Collection of Maps) can also be created [ [‘firstname’: ‘Abhi’, ‘lastname’:’jain’] [‘firstname’: ‘Montu’, ‘lastname’:’jain’] [‘firstname’: ‘John’, ‘lastname’:’ anderson’] ]
  • 4. -An Expression language which provides a consistent and standardized way to developers -Can be used easily with mule message, inbound/outbound properties, Variables -Easy to use -Works within message processors to decide the message routes -Used for extracting the information -No need to remember large syntaxes -
  • 5. MEL expression can be used for extracting the data and then decide the next course of action i.e. these can be pretty much used inside choice routers for directing the messages to different routes Small example: <choice> <when expression="#[payload.getFlightName() == ‘Delta']"> <flow-ref name==“DeltaAirLinesProcess" /> </when> <when expression="#[payload.getFlightName() == ‘United’']"> <flow-ref name==“UnitedAirLinesProcess" /> </when> </choice>
  • 6. MEL Can be used for extracting the values from payload, properties or context. For example You have several flow variables which are set (like to, cc, from, body) for sending email message. You can extract all the info and set it while working with one processor <smtp:outbound-endpoint from="#[flowVars.from]" to="#[flowVars.to]" subject="#[payload.subjectLine]" responseTimeout="10000" doc:name="SMTP"/>