SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (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
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
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
 
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
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 

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