SlideShare a Scribd company logo
By
Sudha Ch
 The main motto of this PPT is how to use
Expression filter in our applications.
Filter expression in mule demo
 .mflow
 <?xml version="1.0" encoding="UTF-8"?>
 <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans"
version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-
current.xsd
 http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
 http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
 http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
 http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-
ee.xsd">
 <flow name="MessagePropertiesFlow1" doc:name="MessagePropertiesFlow1">
 <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8089" path="expressionfilter"
doc:name="HTTP"/>
 <message-properties-transformer scope="session" doc:name="Message Properties">
 <add-message-property key="property1" value="mule studio"/>
 </message-properties-transformer>
 <logger message="--flow1--#[sessionVars['property1']]" level="INFO" doc:name="Logger"/>
 <expression-filter expression="#[sessionVars['property1']!='mule']" doc:name="Expression"/>
 <vm:outbound-endpoint exchange-pattern="request-response" path="messageproperties" doc:name="VM"/>
 </flow>
 <flow name="MessagePropertiesFlow2" doc:name="MessagePropertiesFlow2">
 <vm:inbound-endpoint exchange-pattern="request-response" path="messageproperties" doc:name="VM"/>
 <logger message="---flow2--#[sessionVars['property1']]" level="INFO" doc:name="Logger"/>
 </flow>
 </mule>
 Output:
 INFO 2015-10-03 16:00:23,705 [[messageproperties].config.change.14.thread.1]
org.mule.DefaultMuleContext:
 **********************************************************************
 * Application: messageproperties *
 * OS encoding: Cp1252, Mule encoding: UTF-8 *
 * *
 * Agents Running: *
 * Clustering Agent *
 * JMX Agent *
 **********************************************************************
 INFO 2015-10-03 16:00:23,706 [[messageproperties].config.change.14.thread.1]
org.mule.module.launcher.MuleDeploymentService:
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 + Started app 'messageproperties' +
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 INFO 2015-10-03 16:00:26,480 [[messageproperties].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --flow1--mule--studio
 INFO 2015-10-03 16:00:26,482 [[messageproperties].connector.http.mule.default.receiver.02]
org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.VM.mule.default.dispatcher.771015974'.
Object is: VMMessageDispatcher
 INFO 2015-10-03 16:00:26,482 [[messageproperties].connector.http.mule.default.receiver.02]
org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.VM.mule.default.dispatcher.771015974'.
Object is: VMMessageDispatcher
 INFO 2015-10-03 16:00:26,489 [[messageproperties].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: ---flow2--mule--studio
 Flow of execution:
1. URL to trigger the service from browser
http://localhost:8089/expressionfilter
2. session property is created using message
property component In flow1
3. Service displays session properties in flow1
4. VM component in flow1 will call flow2 if the
value of the session property is other then
mule.
5. In the POC the session property value is
“mule studio” so flow1 calls flow2 and displays
session property value in flow2
 https://docs.mulesoft.com/mule-
fundamentals/v/3.7/mule-filters-scopes-
and-routers

More Related Content

PPTX
Message properties component in mule
Khan625
 
PPTX
Filter expression in mule
Rajkattamuri
 
PPTX
Message properties component in mule demo
Sudha Ch
 
PPTX
Expression filter in Mule
Khan625
 
PPTX
Expression filter in Mule
Mohammed246
 
PPTX
Mule esb
Khan625
 
PPT
Mule security - spring security manager
D.Rajesh Kumar
 
PPTX
Choice component in mule
Rajkattamuri
 
Message properties component in mule
Khan625
 
Filter expression in mule
Rajkattamuri
 
Message properties component in mule demo
Sudha Ch
 
Expression filter in Mule
Khan625
 
Expression filter in Mule
Mohammed246
 
Mule esb
Khan625
 
Mule security - spring security manager
D.Rajesh Kumar
 
Choice component in mule
Rajkattamuri
 

What's hot (18)

PPTX
Configurare https mule
Antonio Pellegrino
 
PPTX
Mule property placeholder
Sashidhar Rao GDS
 
ODP
Mule ESB SMTP Connector Integration
AnilKumar Etagowni
 
PPTX
Configurare http mule
Antonio Pellegrino
 
PPTX
Mule flow complete
Son Nguyen
 
PPTX
How to get http query parameters in mule
Ramakrishna kapa
 
PPTX
Basic example using for each component
prudhvivreddy
 
PDF
How to connect redis and mule esb using spring data redis module
Priyobroto Ghosh (Mule ESB Certified)
 
PPTX
Wildcard Filter
sivachandra mandalapu
 
PPTX
Choice component in mule demo
Sudha Ch
 
PPTX
Mule message processor or routers
sathyaraj Anand
 
PPTX
Soap Component
sivachandra mandalapu
 
PPTX
For each component in mule
Rajkattamuri
 
PPTX
Quartz component in mule demo
Sudha Ch
 
ODP
Dropbox connector Mule ESB Integration
AnilKumar Etagowni
 
PPTX
Mule esb :Data Weave
AnilKumar Etagowni
 
PPTX
Basic example using message properties component
prudhvivreddy
 
PPTX
Send email attachment using smtp in mule esb
Praneethchampion
 
Configurare https mule
Antonio Pellegrino
 
Mule property placeholder
Sashidhar Rao GDS
 
Mule ESB SMTP Connector Integration
AnilKumar Etagowni
 
Configurare http mule
Antonio Pellegrino
 
Mule flow complete
Son Nguyen
 
How to get http query parameters in mule
Ramakrishna kapa
 
Basic example using for each component
prudhvivreddy
 
How to connect redis and mule esb using spring data redis module
Priyobroto Ghosh (Mule ESB Certified)
 
Wildcard Filter
sivachandra mandalapu
 
Choice component in mule demo
Sudha Ch
 
Mule message processor or routers
sathyaraj Anand
 
Soap Component
sivachandra mandalapu
 
For each component in mule
Rajkattamuri
 
Quartz component in mule demo
Sudha Ch
 
Dropbox connector Mule ESB Integration
AnilKumar Etagowni
 
Mule esb :Data Weave
AnilKumar Etagowni
 
Basic example using message properties component
prudhvivreddy
 
Send email attachment using smtp in mule esb
Praneethchampion
 
Ad

Similar to Filter expression in mule demo (20)

PPTX
Expression
sivachandra mandalapu
 
PPTX
Expression Filters
Durga Prasad Kakarla
 
PPTX
How to use expression filter
Khasim Saheb
 
PPTX
How to use expression filter
Anand kalla
 
PPTX
How to use expression filter
Sunil Komarapu
 
PPTX
How to use expression filter
Phaniu
 
PPTX
How to use expression filter
irfan1008
 
PPTX
How to use expression filter
mdfkhan625
 
PPTX
How to use expression filter
princeirfancivil
 
PPTX
How to use expression filter
Praneethchampion
 
PPTX
Filter expression
AbdulImrankhan7
 
PPTX
Filter expression
F K
 
PPTX
Filter expression in mule
javeed_mhd
 
PPTX
Filter expression
Sunil Komarapu
 
PPTX
How to use expression filter
RaviRajuRamaKrishna
 
PPTX
Property place holder
sivachandra mandalapu
 
PPTX
How to use message properties component
mdfkhan625
 
PPTX
How to use message properties component
princeirfancivil
 
PPTX
How to use message properties component
irfan1008
 
PPTX
How to use message properties component
Phaniu
 
Expression Filters
Durga Prasad Kakarla
 
How to use expression filter
Khasim Saheb
 
How to use expression filter
Anand kalla
 
How to use expression filter
Sunil Komarapu
 
How to use expression filter
Phaniu
 
How to use expression filter
irfan1008
 
How to use expression filter
mdfkhan625
 
How to use expression filter
princeirfancivil
 
How to use expression filter
Praneethchampion
 
Filter expression
AbdulImrankhan7
 
Filter expression
F K
 
Filter expression in mule
javeed_mhd
 
Filter expression
Sunil Komarapu
 
How to use expression filter
RaviRajuRamaKrishna
 
Property place holder
sivachandra mandalapu
 
How to use message properties component
mdfkhan625
 
How to use message properties component
princeirfancivil
 
How to use message properties component
irfan1008
 
How to use message properties component
Phaniu
 
Ad

More from Sudha Ch (14)

PPTX
Git hub plugin setup and working with Git hub on anypoint studio
Sudha Ch
 
PPTX
Mule management console installation with Tomcat
Sudha Ch
 
PPTX
How to commit a project in svn using svn plugin in anypoint studio
Sudha Ch
 
PPTX
JUnit and MUnit Set Up In Anypoint Studio
Sudha Ch
 
PPTX
How To Install Sonar Qube Plugin In Anypoint Studio
Sudha Ch
 
PPTX
Vm component in mule demo
Sudha Ch
 
PPTX
Until successful component in mule demo
Sudha Ch
 
PPTX
Junit in mule demo
Sudha Ch
 
PPTX
For each component in mule demo
Sudha Ch
 
PPTX
File component in mule demo
Sudha Ch
 
PPTX
Database component in mule demo
Sudha Ch
 
PPTX
Mule esb made system integration easy
Sudha Ch
 
PPTX
Telling the world why we love mule soft!
Sudha Ch
 
PPTX
Telling the world why we love mule soft!
Sudha Ch
 
Git hub plugin setup and working with Git hub on anypoint studio
Sudha Ch
 
Mule management console installation with Tomcat
Sudha Ch
 
How to commit a project in svn using svn plugin in anypoint studio
Sudha Ch
 
JUnit and MUnit Set Up In Anypoint Studio
Sudha Ch
 
How To Install Sonar Qube Plugin In Anypoint Studio
Sudha Ch
 
Vm component in mule demo
Sudha Ch
 
Until successful component in mule demo
Sudha Ch
 
Junit in mule demo
Sudha Ch
 
For each component in mule demo
Sudha Ch
 
File component in mule demo
Sudha Ch
 
Database component in mule demo
Sudha Ch
 
Mule esb made system integration easy
Sudha Ch
 
Telling the world why we love mule soft!
Sudha Ch
 
Telling the world why we love mule soft!
Sudha Ch
 

Recently uploaded (20)

PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PPTX
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PDF
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PDF
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PPTX
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PDF
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
PPT
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
PDF
Immersive experiences: what Pharo users do!
ESUG
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
Exploring AI Agents in Process Industries
amoreira6
 
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
Immersive experiences: what Pharo users do!
ESUG
 

Filter expression in mule demo

  • 2.  The main motto of this PPT is how to use Expression filter in our applications.
  • 4.  .mflow  <?xml version="1.0" encoding="UTF-8"?>  <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans- current.xsd  http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd  http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd  http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd  http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking- ee.xsd">  <flow name="MessagePropertiesFlow1" doc:name="MessagePropertiesFlow1">  <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8089" path="expressionfilter" doc:name="HTTP"/>  <message-properties-transformer scope="session" doc:name="Message Properties">  <add-message-property key="property1" value="mule studio"/>  </message-properties-transformer>  <logger message="--flow1--#[sessionVars['property1']]" level="INFO" doc:name="Logger"/>  <expression-filter expression="#[sessionVars['property1']!='mule']" doc:name="Expression"/>  <vm:outbound-endpoint exchange-pattern="request-response" path="messageproperties" doc:name="VM"/>  </flow>  <flow name="MessagePropertiesFlow2" doc:name="MessagePropertiesFlow2">  <vm:inbound-endpoint exchange-pattern="request-response" path="messageproperties" doc:name="VM"/>  <logger message="---flow2--#[sessionVars['property1']]" level="INFO" doc:name="Logger"/>  </flow>  </mule>
  • 5.  Output:  INFO 2015-10-03 16:00:23,705 [[messageproperties].config.change.14.thread.1] org.mule.DefaultMuleContext:  **********************************************************************  * Application: messageproperties *  * OS encoding: Cp1252, Mule encoding: UTF-8 *  * *  * Agents Running: *  * Clustering Agent *  * JMX Agent *  **********************************************************************  INFO 2015-10-03 16:00:23,706 [[messageproperties].config.change.14.thread.1] org.mule.module.launcher.MuleDeploymentService:  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  + Started app 'messageproperties' +  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  INFO 2015-10-03 16:00:26,480 [[messageproperties].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --flow1--mule--studio  INFO 2015-10-03 16:00:26,482 [[messageproperties].connector.http.mule.default.receiver.02] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.VM.mule.default.dispatcher.771015974'. Object is: VMMessageDispatcher  INFO 2015-10-03 16:00:26,482 [[messageproperties].connector.http.mule.default.receiver.02] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.VM.mule.default.dispatcher.771015974'. Object is: VMMessageDispatcher  INFO 2015-10-03 16:00:26,489 [[messageproperties].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: ---flow2--mule--studio
  • 6.  Flow of execution: 1. URL to trigger the service from browser http://localhost:8089/expressionfilter 2. session property is created using message property component In flow1 3. Service displays session properties in flow1 4. VM component in flow1 will call flow2 if the value of the session property is other then mule. 5. In the POC the session property value is “mule studio” so flow1 calls flow2 and displays session property value in flow2