SlideShare une entreprise Scribd logo
1  sur  12
Abhishek Jain
 Use of MEL
 Access Object Level Properties
 Access Method Level Properties
 Operators
 Operators Evaluation
 Data Extraction
 Topic for next session
 Reference
-In the previous slide example, MEL is calling the inbound
property from the mule message for the value of “Host”
-All properties are stored in Map
-There are two ways to access them
-#[message.getInboundProperty(‘host’)]
-#[message.InboundProperties[‘host’]]
-In order to access Mule Registry, use below expression
If payload is of type java object
then properties can be accessed
directly by calling the fieldname
from payload.
For example, payload is of
CustomerDetails object and want to
access lastname then use the
below expression
#[payload.lastName]
If payload is of type java object
then methods can also be triggered
using MEL
For example, payload is of
CustomerDetails object and want to
trigger getFirstName method then
use below expressiono
#[payload.getFirstName()]
#[‘hello’ + ‘John’] => Hello John
Standard Comparison Operators:
==, !=, >, <, >=, =<
Contains – Similar to like Operator
Is- Checks the type of an object
Mainly used in Choice Router
 #[xpath(‘expression’)]
 #[regex(‘expression’)]
List/Maps in MEL
 www.mulesoft.com
 Mule in Action
Mule soft mel_day2

Contenu connexe

Tendances

Tendances (14)

Angular2
Angular2Angular2
Angular2
 
Design patterns in Magento
Design patterns in MagentoDesign patterns in Magento
Design patterns in Magento
 
JSP Error handling
JSP Error handlingJSP Error handling
JSP Error handling
 
Lift Framework
Lift FrameworkLift Framework
Lift Framework
 
jsp MySQL database connectivity
jsp MySQL database connectivityjsp MySQL database connectivity
jsp MySQL database connectivity
 
Functions creation in sql
Functions creation in sqlFunctions creation in sql
Functions creation in sql
 
Jsp Introduction Tutorial
Jsp Introduction TutorialJsp Introduction Tutorial
Jsp Introduction Tutorial
 
Dataweave nagarjuna
Dataweave nagarjunaDataweave nagarjuna
Dataweave nagarjuna
 
Java database connectivity
Java database connectivityJava database connectivity
Java database connectivity
 
Jdbc example program with access and MySql
Jdbc example program with access and MySqlJdbc example program with access and MySql
Jdbc example program with access and MySql
 
Java components in Mule
Java components in MuleJava components in Mule
Java components in Mule
 
Mule Expression language
Mule Expression languageMule Expression language
Mule Expression language
 
Expression language in mule
Expression language in muleExpression language in mule
Expression language in mule
 
React JS & Functional Programming Principles
React JS & Functional Programming PrinciplesReact JS & Functional Programming Principles
React JS & Functional Programming Principles
 

En vedette

Victoria and Albert
Victoria and AlbertVictoria and Albert
Victoria and Albert
Maria Prince
 
Hernandez computacion
Hernandez  computacionHernandez  computacion
Hernandez computacion
aymara32135
 
Design Skills Reinvent Fashion
Design Skills Reinvent FashionDesign Skills Reinvent Fashion
Design Skills Reinvent Fashion
Maria Prince
 
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
Barbara Lammertink
 

En vedette (20)

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...
 
Francis-Certificates
Francis-CertificatesFrancis-Certificates
Francis-Certificates
 
Mule soft mule_variables
Mule soft mule_variablesMule soft mule_variables
Mule soft mule_variables
 
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
 
Victoria and Albert
Victoria and AlbertVictoria and Albert
Victoria and Albert
 
Mule soft filters
Mule soft filtersMule soft filters
Mule soft filters
 
TSG__About_Us
TSG__About_UsTSG__About_Us
TSG__About_Us
 
Mule soft at a glance
Mule soft at a glanceMule soft at a glance
Mule soft at a glance
 
Mule soft muleflow
Mule soft muleflowMule soft muleflow
Mule soft muleflow
 
Hernandez computacion
Hernandez  computacionHernandez  computacion
Hernandez computacion
 
Mule soft filters_2
Mule soft filters_2Mule soft filters_2
Mule soft filters_2
 
Mule soft firstprogram
Mule soft firstprogramMule soft firstprogram
Mule soft firstprogram
 
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
 
Tutorial excel pestaña datos
Tutorial excel pestaña datosTutorial excel pestaña datos
Tutorial excel pestaña datos
 
Mule soft mel_day1
Mule soft mel_day1Mule soft mel_day1
Mule soft mel_day1
 
Mule soft debugprogram
Mule soft debugprogramMule soft debugprogram
Mule soft debugprogram
 
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 program
Mule soft programMule soft program
Mule soft program
 
PALETAS DEL MEXICO
PALETAS DEL MEXICOPALETAS DEL MEXICO
PALETAS DEL MEXICO
 

Dernier

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Mule soft mel_day2

  • 2.  Use of MEL  Access Object Level Properties  Access Method Level Properties  Operators  Operators Evaluation  Data Extraction  Topic for next session  Reference
  • 3.
  • 4. -In the previous slide example, MEL is calling the inbound property from the mule message for the value of “Host” -All properties are stored in Map -There are two ways to access them -#[message.getInboundProperty(‘host’)] -#[message.InboundProperties[‘host’]] -In order to access Mule Registry, use below expression
  • 5. If payload is of type java object then properties can be accessed directly by calling the fieldname from payload. For example, payload is of CustomerDetails object and want to access lastname then use the below expression #[payload.lastName]
  • 6. If payload is of type java object then methods can also be triggered using MEL For example, payload is of CustomerDetails object and want to trigger getFirstName method then use below expressiono #[payload.getFirstName()]
  • 8. Standard Comparison Operators: ==, !=, >, <, >=, =< Contains – Similar to like Operator Is- Checks the type of an object Mainly used in Choice Router