Creating the Route - 8.0

Talend Data Mapper User Guide

Version
8.0
Language
English
Product
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development > Designing Jobs
Last publication date
2024-03-28

Create a Route with an input file, headers, a cMap component and an output file.

Procedure

  1. Open the Integration perspective, right-click the Route Designs node and click Create Route.
  2. Enter a name, purpose and description for your Route, then click Finish.
  3. Add the following components to your design workspace and link them with Row > Route connections:
    • A cFile
    • A cSetHeader
    • A cMap
    • A second cFile
    Your Route should look like this:
  4. Double-click the first cFile and set the path and file name for your input XML file.

    Example

  5. Double-click the cSetHeader and add the following headers:
    Name Language Value
    "Account_Website" Constant "www.company.com"
    "Account_Phone" Constant "(555)555-5555"
  6. Double-click the second cFile and set the path and file name for your output JSON file.
  7. Double-click the cMap and follow the wizard to generate the map.
    1. In the first step, select the input structure you created in Creating the input structure for your Route and click Next
    2. In the second step, select the output structure you created in Creating the output structure for your Route and click Finish.

Results

The map is generated using the input and output structures previously created. You can now map the elements.