Configuring the components - Cloud - 8.0

Filter (Mediation)

Version
Cloud
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
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)
Last publication date
2024-02-21

Procedure

  1. Double-click the cFile component labeled Sender to open its Basic settings view in the Component tab.
  2. In the Path field, fill in or browse to the path to the folder that holds the source files.
  3. From the Encoding list, select the encoding type of your source files. Leave the other parameters as they are.
  4. Repeat these steps to define the path to the output files and the output encoding type in the Basic settings view of the cFile component labeled Receiver.
  5. Double-click the cPipesAndFilters component to open its Basic settings view in the Component tab.
  6. Click the plus button to add two lines to the URI list table, and fill the first line with "direct:a" and the second line with "direct:b" to define the URIs of stage A and stage B that the messages will undergo.
  7. Double-click the cMessagingEndpoint component labeled Stage_A to configure the component in its Basic settings view and define the URI of stage A.
    Repeat this step to define the URI of stage B in the Basic settings view of the cMessagingEndpoint component labeled Stage_B.
  8. Double-click the cProcessor component labeled Monitor_Receiver to open its Basic settings view, and customize the code in the Code area to display the file names of the messages received on Receiver, as follows:
    System.out.println("Message sent to Receiver: "+
    exchange.getIn().getHeader("CamelFileName"));
    Repeat this step to customize the code in the other two cProcessor components to display the file names of the messages received on stage A and stage B respectively:
    System.out.println("Message sent to stage A: "+
    exchange.getIn().getHeader("CamelFileName"));
    System.out.println("Message sent to stage B: "+
    exchange.getIn().getHeader("CamelFileName"));
  9. Press Ctrl+S to save your Route.