2. Introduction
Filters determine whether a message can proceed in a Mule flow
Can be defined as global filters and referenced for reuse
Some implement basic logic operators (and, or, not), but they can be combined for more complex
logical conditions
3. Available Filters
There are 12 bundled filters:
And
Custom
Exception
Expression
Filter Reference
Idempotent Message
Message
Message Property
Not
Or
Payload
Regex
Schema Validation
Wildcard
It is possible to create custom filters
4. Custom Filters
In addition to applying standard filters, you can create a custom filter to specify a precise set of conditions a
message must satisfy before it can continue through the flow
the reference is to a class implementing the Filter interface
You can also create a global filter that specifies a set of conditions that the message must meet at points
along the flow specified by the Filter Ref building block
5. Filter Logic
When a message fails to satisfy the conditions specified by a filter, that filter returns a null value, which
causes the processing of that particular message to halt. In other words, the message is rejected and
undergoes no further processing
When a message satisfies the conditions specified by a filter, that filter passes the payload of the message to
the next building block in the flow, and processing of that particular message continues