Viewing the code and executing the Route - 7.3

Filter (Mediation)

author
Talend Documentation Team
EnrichVersion
Cloud
7.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Routing components (Mediation) > Filter components (Mediation)
Data Quality and Preparation > Third-party systems > Routing components (Mediation) > Filter components (Mediation)
Design and Development > Third-party systems > Routing components (Mediation) > Filter components (Mediation)
EnrichPlatform
Talend Studio

Procedure

  1. To have a look at the generated code, click the Code tab at the bottom of the design workspace.
    As shown in this piece of code, messages from the sender are filtered by cMessageFilter_1 according to .xpath("/person[city='Paris']") and the messages matching the filter are send .to the endpoint Paris_only, while all messages are sent .to the endpoint Unfiltered.
  2. Click the Run view to display it and click the Run button to launch the execution of your Route.
    You can also press F6 to execute it.
    RESULT: The messages are filtered according to the defined criterion and the messages containing "Paris" are redirected to the Paris_only folder, all the messages, including those containing "Paris", are sent to the Unfiltered folder.