InterviewSolution
| 1. |
What is the use of Filter in Mule? |
|
Answer» To make smart decisions on the request and response ENVIRONMENT or message delivery, filters are used. These are the most powerful CAPABILITIES given to the routers. In order to decide what to do with the messages in the transit stage, filters give sight to the ROUTER. Some filters go through a thorough analysis of the given message to obtain the actual value of the desired output. The expression ‘filter’ returns either true or FALSE. If the expression returns true for a value or INDEX in the array, the value gets captured in the output array. If it returns false for a value or index in the array, that item gets filtered out of the output. If there are no matches, the output array will be empty. |
|