Defining the connections linking the components - Cloud - 8.0

Talend Job Script Reference Guide

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend CommandLine
Talend Studio
Content
Design and Development > Designing Jobs
Last publication date
2024-02-22

Follow the steps below to add and define the connections that link the components in the Job.

Procedure

  1. Next to the output component definition, enter an addConnection {} function to add a connection.
  2. In the addConnection {} function, enter the parameters required to define the connection properties:
    • Connection type

    • Connection name

    • Connection style

    • Source component

    • Target component

    The example below defines a main row connection between the first tFileInputDelimited component and the tMap component.

    addConnection {
    	TYPE: "FLOW",
    	NAME: "row1",
    	LINESTYLE: 0,
    	SOURCE: "tFileInputDelimited_1",
    	TARGET: "tMap_1"
    }
    Warning:

    The name of this connection must match the main input table name defined in the tMap settings.

  3. Enter another addConnection {} function and define a lookup row connection between the section tFileInputDelimited component and the tMap component.
    addConnection {
    	TYPE: "FLOW",
    	NAME: "row2",
    	LINESTYLE: 8,
    	SOURCE: "tFileInputDelimited_2",
    	TARGET: "tMap_1"
    }
    Warning:

    The name of this connection must match the lookup input table name defined in the tMap settings.

  4. Enter another addConnection {} function and define a main row connection between the tMap component and the tFileoutputDelimited component.
    addConnection {
    	TYPE: "FLOW",
    	NAME: "out",
    	LINESTYLE: 0,
    	SOURCE: "tMap_1",
    	TARGET: "tFileOutputDelimited_1"
    }
    Warning:

    The name of this connection must match the corresponding output schema and output table names defined in the tMap.