Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
VAMSIKRISHNAKALE
Explorer
4,146

Filter:
A filter is a component used to selectively process or manipulate data within a message flow. Filters allow you to control which parts of an incoming message should be processed based on specific conditions, such as content or message attributes. This is particularly useful when integrating systems with different data structures, as it helps extract or modify only the relevant information from a message.

In a filter, there are two main options:

  1. General: This is where you can give the filter a meaningful name.
  2. Processing: In this option, you define conditions. There are two fields present here:
  3. VAMSIKRISHNAKALE_6-1738925827947.png
    1. Boolean: This option checks whether the required data is present or not. It can return either true or false.
      • False statement example: The condition “/PersonalDetails/PersonalDetail/Parachute” means the required data or field is not present in the input.
      • True statement example: The condition “/PersonalDetails/PersonalDetail/PersonID” means the required data or field is present in the input.
        VAMSIKRISHNAKALE_9-1738925827950.png
        VAMSIKRISHNAKALE_10-1738925827951.png
    2. Integer: This option is used to filter the first integer value from the payload (i.e., if the payload contains details of multiple persons, the data of the first person will be selected) based on the condition.
      Example XPath: /PersonalDetails/PersonalDetail/PersonID
      VAMSIKRISHNAKALE_2-1738925827944.png
      VAMSIKRISHNAKALE_4-1738925827946.png
    3. Node: This option retrieves a specific node from the input data based on the condition provided.
      • Example XPath: /PersonalDetails/PersonalDetail/PersonID
        VAMSIKRISHNAKALE_7-1738925827949.png
        VAMSIKRISHNAKALE_8-1738925827949.png
    4. String: This option is used for filtering the first-string value from the payload (i.e., if the payload contains details of multiple persons, the data of the first person will be selected) based on the condition.
      • Example XPath: /PersonalDetails/PersonalDetail/Name
        VAMSIKRISHNAKALE_3-1738925827945.png
        VAMSIKRISHNAKALE_5-1738925827947.png

    5. Nodelist: The filter works based on the specified condition. You can extract details for multiple persons, employees, orders, etc., from the payload according to the requirements. We will get entire details of the node when the condition is accepted.
    • XPath Expression: In this field, you define the condition according to your requirements.
    • Value Type: Here, you choose the appropriate option based on the requirement. The available options are:

VAMSIKRISHNAKALE_0-1738925827941.png

 

VAMSIKRISHNAKALE_1-1738925827943.png

this all about the filter pallet, if you find any miss information, let me know in comments
thank you,
Vamsi