SlideShare a Scribd company logo
Mule ESB
How to use Expression Filters
In this tutorial we will be using the expression filter, which is a filter against a range of
expressions.
As usual, let’s begin creating the http inbound component to trigger the flow
The goal is to send a query param called ‘name’, with a value based on which the flow will
continue or end after the http inbound component
For this purpose we will use the ‘expression filter’ configured in the following way:
Expression: #[message.inbounfProperties.’http.query.params’.name == ‘User’]
The meaning of the expression is to let the incoming messages pass through the filter only
if the expression is evaluated to true. In this case, so, if the passed ‘name’ param value is
set to ‘Gennaro’.
Let’s add a set Payload and a logger to see the results, and show the message pass through
the filter. Settings: Value = User Passed!
Let’s dive into postman to test it out.
Test #1. Message not passed:
Test #2. Message passed:
User Passed!
ENJOY WITH THE MULE!

More Related Content

Viewers also liked

Longboat (1996) Relative rates of sand transport
Longboat (1996) Relative rates of sand transportLongboat (1996) Relative rates of sand transport
Longboat (1996) Relative rates of sand transport
Sheri Longboat, Ph.D.
 
RAMM_Aenne_rapport_de_stage
RAMM_Aenne_rapport_de_stageRAMM_Aenne_rapport_de_stage
RAMM_Aenne_rapport_de_stage
Aenne Ramm
 

Viewers also liked (10)

Правила чтения английских гласных букв
Правила чтения английских гласных буквПравила чтения английских гласных букв
Правила чтения английских гласных букв
 
Marinaleda
Marinaleda Marinaleda
Marinaleda
 
Presentation1
Presentation1Presentation1
Presentation1
 
Ambito de aplicacion del Reglamento Europeo de Proteccion de Datos
Ambito de aplicacion del Reglamento Europeo de Proteccion de DatosAmbito de aplicacion del Reglamento Europeo de Proteccion de Datos
Ambito de aplicacion del Reglamento Europeo de Proteccion de Datos
 
Deep Foundation Installation Methods
Deep Foundation Installation Methods  Deep Foundation Installation Methods
Deep Foundation Installation Methods
 
DUPLICATION
DUPLICATIONDUPLICATION
DUPLICATION
 
Curso de Formación Conversia - Excel 2007 Avanzado
Curso de Formación Conversia - Excel 2007 AvanzadoCurso de Formación Conversia - Excel 2007 Avanzado
Curso de Formación Conversia - Excel 2007 Avanzado
 
Longboat (1996) Relative rates of sand transport
Longboat (1996) Relative rates of sand transportLongboat (1996) Relative rates of sand transport
Longboat (1996) Relative rates of sand transport
 
RAMM_Aenne_rapport_de_stage
RAMM_Aenne_rapport_de_stageRAMM_Aenne_rapport_de_stage
RAMM_Aenne_rapport_de_stage
 
Zaccccc
ZacccccZaccccc
Zaccccc
 

Similar to Mule esb expression_filter

Similar to Mule esb expression_filter (20)

Mule esb - How to use Idempotent Filters in 5 minutes
Mule esb - How to use Idempotent Filters in 5 minutesMule esb - How to use Idempotent Filters in 5 minutes
Mule esb - How to use Idempotent Filters in 5 minutes
 
Using expression filter
Using expression filterUsing expression filter
Using expression filter
 
Email Configuration
Email ConfigurationEmail Configuration
Email Configuration
 
Mule message processor or routers
Mule message processor or routersMule message processor or routers
Mule message processor or routers
 
Sending Email with Rails
Sending Email with RailsSending Email with Rails
Sending Email with Rails
 
Idempotent filter with simple file
Idempotent filter with simple fileIdempotent filter with simple file
Idempotent filter with simple file
 
Routing in mule
Routing in muleRouting in mule
Routing in mule
 
Mule routing and filters
Mule routing and filtersMule routing and filters
Mule routing and filters
 
Php
PhpPhp
Php
 
Php
PhpPhp
Php
 
Php
PhpPhp
Php
 
Idempotent filter in mule
Idempotent filter in muleIdempotent filter in mule
Idempotent filter in mule
 
Idempotent filter with mule
Idempotent filter with muleIdempotent filter with mule
Idempotent filter with mule
 
Idempotent filter with simple file
Idempotent filter with simple fileIdempotent filter with simple file
Idempotent filter with simple file
 
Idempotent filter with simple file
Idempotent filter with simple fileIdempotent filter with simple file
Idempotent filter with simple file
 
Idempotent filter with simple file
Idempotent filter with simple fileIdempotent filter with simple file
Idempotent filter with simple file
 
Idempotent filter in mule
Idempotent filter in muleIdempotent filter in mule
Idempotent filter in mule
 
Idempotent filter with simple file
Idempotent filter with simple fileIdempotent filter with simple file
Idempotent filter with simple file
 
Idempotent filter in Mule
Idempotent filter in MuleIdempotent filter in Mule
Idempotent filter in Mule
 
Idempotent filter with simple file
Idempotent filter with simple fileIdempotent filter with simple file
Idempotent filter with simple file
 

More from Davide Rapacciuolo

More from Davide Rapacciuolo (20)

Muleesbobjecttojson
Muleesbobjecttojson Muleesbobjecttojson
Muleesbobjecttojson
 
Mule esb db_2
Mule esb db_2Mule esb db_2
Mule esb db_2
 
Mule esb db_1
Mule esb db_1Mule esb db_1
Mule esb db_1
 
Consuming raml
Consuming ramlConsuming raml
Consuming raml
 
Transf from csv to xml
Transf from csv to xmlTransf from csv to xml
Transf from csv to xml
 
Esb choice flow
Esb choice flowEsb choice flow
Esb choice flow
 
Xml to xml transformation in mule
Xml to xml transformation in muleXml to xml transformation in mule
Xml to xml transformation in mule
 
Transformation xmltoobjectesb
Transformation xmltoobjectesbTransformation xmltoobjectesb
Transformation xmltoobjectesb
 
Transformation jsontoxmlesb
Transformation jsontoxmlesbTransformation jsontoxmlesb
Transformation jsontoxmlesb
 
Transformation jsontojsonesb
Transformation jsontojsonesbTransformation jsontojsonesb
Transformation jsontojsonesb
 
Transformation csvtoxml
Transformation csvtoxmlTransformation csvtoxml
Transformation csvtoxml
 
Rest fullservices
Rest fullservicesRest fullservices
Rest fullservices
 
Xml to xml transformation in mule
Xml to xml transformation in muleXml to xml transformation in mule
Xml to xml transformation in mule
 
Mule esb object_to_json
Mule esb object_to_jsonMule esb object_to_json
Mule esb object_to_json
 
Mule esb object_to_jackson_json
Mule esb object_to_jackson_jsonMule esb object_to_jackson_json
Mule esb object_to_jackson_json
 
Mule esb collection_splitter
Mule esb collection_splitterMule esb collection_splitter
Mule esb collection_splitter
 
Mule esb soap_service
Mule esb soap_serviceMule esb soap_service
Mule esb soap_service
 
Transformation xmltoobjectesb
Transformation xmltoobjectesbTransformation xmltoobjectesb
Transformation xmltoobjectesb
 
Transformation jsontoxmlesb
Transformation jsontoxmlesbTransformation jsontoxmlesb
Transformation jsontoxmlesb
 
Mule esb csv_to_json
Mule esb csv_to_jsonMule esb csv_to_json
Mule esb csv_to_json
 

Recently uploaded

Recently uploaded (20)

Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
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...
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 

Mule esb expression_filter

  • 1. Mule ESB How to use Expression Filters
  • 2. In this tutorial we will be using the expression filter, which is a filter against a range of expressions. As usual, let’s begin creating the http inbound component to trigger the flow The goal is to send a query param called ‘name’, with a value based on which the flow will continue or end after the http inbound component
  • 3. For this purpose we will use the ‘expression filter’ configured in the following way: Expression: #[message.inbounfProperties.’http.query.params’.name == ‘User’] The meaning of the expression is to let the incoming messages pass through the filter only if the expression is evaluated to true. In this case, so, if the passed ‘name’ param value is set to ‘Gennaro’. Let’s add a set Payload and a logger to see the results, and show the message pass through the filter. Settings: Value = User Passed!
  • 4. Let’s dive into postman to test it out. Test #1. Message not passed: Test #2. Message passed: User Passed! ENJOY WITH THE MULE!