Defining connections - 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

Use the procedure below to create connections to link the components and finalize the Job script creation.

Procedure

  1. Next to the tLibraryLoad Job script definitions, enter the following script code to define a Main row connection between the tFileInputDelimited component and the tUniqRow component.
    addConnection {
    	TYPE: "FLOW",
    	NAME: "row1",
    	LINESTYLE: 0,
    	SOURCE: "tFileInputDelimited_1",
    	TARGET: "tUniqRow_1"
    }
  2. Enter the following script code to define a row connection between the tUniqRow component and the first tJavaRow component, to pass the unique email addresses to the validation process.
    addConnection {
    	TYPE: "UNIQUE",
    	NAME: "row2",
    	LINESTYLE: 0,
    	SOURCE: "tUniqRow_1",
    	TARGET: "tJavaRow_1"
    }
  3. Enter the following script code to define a row connection between the tUniqRow component and the second tJavaRow component, to pass the duplicate email addresses to the ouput component.
    addConnection {
    	TYPE: "DUPLICATE",
    	NAME: "row3",
    	LINESTYLE: 0,
    	SOURCE: "tUniqRow_1",
    	TARGET: "tJavaRow_2"
    }
  4. Enter the following script code to define a trigger connection between the tLibraryLoad component and the tFileInputDelimited component.
    addConnection {
    	TYPE: "SUBJOB_OK",
    	NAME: "OnSubjobOk",
    	LINESTYLE: 1,
    	METANAME: "tLibraryLoad_1",
    	SOURCE: "tLibraryLoad_1",
    	TARGET: "tFileInputDelimited_1",
    }
  5. Enter the following script code to define a Main row connection between the tAggregateRow component and the tSortRow component.
    addConnection {
    	TYPE: "FLOW",
    	NAME: "row5",
    	LINESTYLE: 0,
    	SOURCE: "tAggregateRow_1",
    	TARGET: "tSortRow_1"
    }