2. MULE FILTERS
• Mule includes a variety of message processors designed to facilitate message
routing or filtering, and message processor wrapping.
• Mule filters are use to evaluate a mule message and can perform various operations
like and, or, not on message so that mule message could pass in the flow on the basis
of some conditions.
• Mule filters basically perform Boolean operations on mule message.
3. TYPES OF FILTERS
• There are various types of filters that mule supports. Many of them are below:
• Custom filters
• Exception filters
• Logic filters
• Message filters
4. CUSTOM FILTERS
• As mule supports some standard filters which we can use to evaluate message. But
it also provides a way in which we can configure our own implementations,
conditions to evaluate message. This type of filter is called as custom filter.
• Custom filter lets you refer a user implemented custom filter.
• Reference should be an implementation class of Filter interface.
5. EXCEPTION FILTERS
• Sometimes message should be route in the flow on the basis of exception type. So
exception filter is use for that purpose.
• Exception filters evaluate mule message on the basis of type of exception.
• We supply the class name to it and it check it against its property type and evaluate
its type.
6. LOGIC FILTERS
• Filter mule message on the basis of following operations:
• And
• Or
• Not
Logic filters apply the And, Or, Not logic to one or more nested filters that they enclose.
When you use these logic filters, you add nested filters to them from within the nested pane
for the And, Or, Not filter.
7. MESSAGE FILTERS
• It is used by message processor itself.
• It is used to determine whether to handle incoming message or events or not.