SlideShare a Scribd company logo
How to use Not Filter
12-12-2014
Abstract
• The main motto of this PPT is How to use Not
Filter in our applications.
Introduction
• Mule bundles more than a dozen Filters that
determine whether a message can proceed
through an application flow. The simplest
filters implement basic logic operators (such
as and, or, and not), but these simple
elements can be combined in various ways to
specify complex logical conditions.
Example
.mflow
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" 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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
<flow name="NotFilterFlow1" doc:name="NotFilterFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8091" path="NotFilter"
doc:name="HTTP"/>
<logger message="----entered into the flow" level="INFO" doc:name="Logger"/>
<set-payload value="&lt;Soap-
Env&gt;&lt;Body&gt;&lt;Path&gt;mulechampions&lt;/Path&gt;&lt;/Body&gt;&lt;/Soap-Env&gt;" doc:name="Set
Payload"/>
<not-filter doc:name="Not">
<expression-filter expression="#[xpath('/Soap-Env/Body/Path/text()').text.contains('soft')]"/>
</not-filter>
<logger message="--Success" level="INFO" doc:name="Logger"/>
</flow>
</mule>
• Output:
INFO 2015-12-12 08:18:54,055 [[NotFilter].config.change.2.thread.1]
org.mule.DefaultMuleContext:
**********************************************************************
* Application: NotFilter *
* OS encoding: Cp1252, Mule encoding: UTF-8 *
* *
* Agents Running: *
* Clustering Agent *
* JMX Agent *
**********************************************************************
INFO 2015-12-12 08:18:54,056 [[NotFilter].config.change.2.thread.1]
org.mule.module.launcher.MuleDeploymentService:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'NotFilter' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2015-12-12 08:19:05,212 [[NotFilter].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: ----entered into the flow
INFO 2015-12-12 08:19:05,284 [[NotFilter].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --Success
• Flow of execution:
1. URL to trigger the service from browser
http://localhost:8091/NotFilter
2. NOT filter checks whether the request
contains ‘soft’ or not?, if no, it will print a
message ‘Success’, else it will not go further.
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.7/filters

More Related Content

PPTX
How to use and filter
PPTX
How to use or filter
PPTX
PPTX
PPTX
PPTX
PPTX
Expression filter in Mule
PPTX
How to use and filter
How to use or filter
Expression filter in Mule

What's hot (17)

PPTX
Specifying a default exception strategy
PPTX
Collection aggregator
PPTX
Reference exception strategy
PPTX
PPTX
How to use file component
PPTX
Property place holder
PPTX
File component in mule
PPTX
Defining global exception strategies
PPTX
Validate json schema
PPTX
Exception handling in mule
PPTX
File component
PPTX
Mule property placeholder
PPTX
Filter expression in mule
PPTX
Message properties component in mule demo
PPTX
Quartz component in mule
PPTX
Basic example using for each component
PPTX
Message properties component in mule
Specifying a default exception strategy
Collection aggregator
Reference exception strategy
How to use file component
Property place holder
File component in mule
Defining global exception strategies
Validate json schema
Exception handling in mule
File component
Mule property placeholder
Filter expression in mule
Message properties component in mule demo
Quartz component in mule
Basic example using for each component
Message properties component in mule
Ad

Viewers also liked (15)

PDF
Certificate (1)comunicação visual web .net
PPTX
Measuring What Matters, Starting with Benchmarking
PPTX
Modulo de aprendizaje
PDF
moca Poster Moodle Moot 2016
PDF
La gastronomía peruana a la conquista del paladar catalán
PPTX
Guia de estudio
PPTX
Gladys Bentley Presentation
PDF
Thesis for beginners 2015-10
PPTX
Comparison table for strontium adsorption
ODP
PPTX
CABT SHS Statistics & Probability - Mean and Variance of Sampling Distributio...
PPTX
AREAS DEL LENGUAJE
PPT
QSAR : Activity Relationships Quantitative Structure
PPT
Persamaan lingkaran & garis singgung
PPT
Persamaan lingkaran & garis singgung
Certificate (1)comunicação visual web .net
Measuring What Matters, Starting with Benchmarking
Modulo de aprendizaje
moca Poster Moodle Moot 2016
La gastronomía peruana a la conquista del paladar catalán
Guia de estudio
Gladys Bentley Presentation
Thesis for beginners 2015-10
Comparison table for strontium adsorption
CABT SHS Statistics & Probability - Mean and Variance of Sampling Distributio...
AREAS DEL LENGUAJE
QSAR : Activity Relationships Quantitative Structure
Persamaan lingkaran & garis singgung
Persamaan lingkaran & garis singgung
Ad

Similar to How to use not filter (20)

PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
Filter expression
 
PPTX
Filter expression in mule
PPTX
Filter expression
PPTX
Filter expression
PPTX
Expression Filters
PPTX
Mule- File component example
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
Message properties component in Mule
PPTX
How to use wildcard filter
PPTX
Message properties component
 
PPTX
Message properties component
PPTX
Message properties component in mule
PPTX
File component
 
PPTX
File component
How to use expression filter
How to use expression filter
How to use expression filter
How to use expression filter
Filter expression
 
Filter expression in mule
Filter expression
Filter expression
Expression Filters
Mule- File component example
How to use message properties component
How to use message properties component
How to use message properties component
Message properties component in Mule
How to use wildcard filter
Message properties component
 
Message properties component
Message properties component in mule
File component
 
File component

More from RaviRajuRamaKrishna (10)

PPTX
Mock component in munit
PPTX
Jms selector
PPTX
PPTX
Object store
PPTX
How to use splitter component
PPTX
How to use rest component
PPTX
How to use soap component
PPTX
How to use salesforce cloud connector
PPTX
How to use data mapper transformer
PPTX
How to use bean as datasource in database connector
Mock component in munit
Jms selector
Object store
How to use splitter component
How to use rest component
How to use soap component
How to use salesforce cloud connector
How to use data mapper transformer
How to use bean as datasource in database connector

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Cell Types and Its function , kingdom of life
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Insiders guide to clinical Medicine.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Cell Structure & Organelles in detailed.
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Institutional Correction lecture only . . .
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Computing-Curriculum for Schools in Ghana
O5-L3 Freight Transport Ops (International) V1.pdf
Final Presentation General Medicine 03-08-2024.pptx
Sports Quiz easy sports quiz sports quiz
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
VCE English Exam - Section C Student Revision Booklet
GDM (1) (1).pptx small presentation for students
Cell Types and Its function , kingdom of life
Supply Chain Operations Speaking Notes -ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Microbial disease of the cardiovascular and lymphatic systems
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Insiders guide to clinical Medicine.pdf
Basic Mud Logging Guide for educational purpose
Cell Structure & Organelles in detailed.
Complications of Minimal Access Surgery at WLH
Institutional Correction lecture only . . .
Abdominal Access Techniques with Prof. Dr. R K Mishra
Computing-Curriculum for Schools in Ghana

How to use not filter

  • 1. How to use Not Filter 12-12-2014
  • 2. Abstract • The main motto of this PPT is How to use Not Filter in our applications.
  • 3. Introduction • Mule bundles more than a dozen Filters that determine whether a message can proceed through an application flow. The simplest filters implement basic logic operators (such as and, or, and not), but these simple elements can be combined in various ways to specify complex logical conditions.
  • 5. .mflow <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" 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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> <flow name="NotFilterFlow1" doc:name="NotFilterFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8091" path="NotFilter" doc:name="HTTP"/> <logger message="----entered into the flow" level="INFO" doc:name="Logger"/> <set-payload value="&lt;Soap- Env&gt;&lt;Body&gt;&lt;Path&gt;mulechampions&lt;/Path&gt;&lt;/Body&gt;&lt;/Soap-Env&gt;" doc:name="Set Payload"/> <not-filter doc:name="Not"> <expression-filter expression="#[xpath('/Soap-Env/Body/Path/text()').text.contains('soft')]"/> </not-filter> <logger message="--Success" level="INFO" doc:name="Logger"/> </flow> </mule>
  • 6. • Output: INFO 2015-12-12 08:18:54,055 [[NotFilter].config.change.2.thread.1] org.mule.DefaultMuleContext: ********************************************************************** * Application: NotFilter * * OS encoding: Cp1252, Mule encoding: UTF-8 * * * * Agents Running: * * Clustering Agent * * JMX Agent * ********************************************************************** INFO 2015-12-12 08:18:54,056 [[NotFilter].config.change.2.thread.1] org.mule.module.launcher.MuleDeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Started app 'NotFilter' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2015-12-12 08:19:05,212 [[NotFilter].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: ----entered into the flow INFO 2015-12-12 08:19:05,284 [[NotFilter].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --Success
  • 7. • Flow of execution: 1. URL to trigger the service from browser http://localhost:8091/NotFilter 2. NOT filter checks whether the request contains ‘soft’ or not?, if no, it will print a message ‘Success’, else it will not go further.