Configuring the components - 6.4

Route

author
Talend Documentation Team
EnrichVersion
6.4
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 > Route components
Data Quality and Preparation > Third-party systems > Route components
Design and Development > Third-party systems > Route components
EnrichPlatform
Talend Studio

Procedure

  1. Double-click the cTimer component to open its Basic settings view in the Component tab.
  2. Enter 1 in the Repeat field to trigger a message exchange one time.
  3. Double-click the cSetBody component to display its Basic settings view in the Component tab.
  4. Select Simple from the Language list and enter Hello! in the Expression field.
  5. Double-click the cJavaDSLProcessor component to open its Basic settings view in the Component tab.
  6. Enter .handleFault() in the Code box so that the fault message will be caught as an exception.
  7. Double-click the cTalendJob component to display its Basic settings view in the Component tab.
  8. Select Job RouteCommunication_tRouteFault from the repository to call the Job that is created in the previous section.
  9. Double click the cOnException component to display its Basic settings view in the Component tab.
  10. Click [+] to add a line to the Exceptions table, and enter org.apache.camel.CamelException in the Exception field to handle the exceptions.
  11. Double-click the cProcessor component to display its Basic settings view in the Component tab.
  12. Customize the code in the Code area to show the message body:
    System.out.println(exchange.getIn());
  13. Press Ctrl+S to save your Route.