Building the Route - 7.1

Talend Real-time Big Data Platform Studio User Guide

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend Studio

About this task

Procedure

  1. From the Palette, drag and drop cFile, a cConvertBodyTo, a cSetbody and a cLog components onto the design workspace.
  2. Link the components using the Row > Route connection.
  3. Double-click the cFile component to open its Basic settings view in the Component tab.
  4. In the Path field, enter the path of the message source.
    In the fileName field, enter the name of the message source.
  5. Double-click the cConvertBodyTo component to open its Basic settings view in the Component tab.
  6. In the Target Class Name field, enter your target class name, String.class in this scenario.
  7. Double-click the cSetBody component to open its Basic settings view in the Component tab.
  8. From the Language list, select XPATH.
    In the Expression field, type in "/Customers/Customer[Address/State='MA']" to extract the customer whose State is MA.
  9. Keep the default settings of the cLog to log the message exchanges.
  10. Press Ctrl+S to save your Route.