Defining connections between components in a Job script - Cloud - 7.3

Talend Job Script Reference Guide

Version
Cloud
7.3
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
2023-09-13
To add a connection in a Job script, type in the addConnection{} function and define its properties between the brackets.

addConnection{} properties

Function Description Mandatory?

TYPE

Type in the type of connection used in the component, for example: FLOW, REJECT, and so on.

Yes

NAME

Give a name to the connection.

Yes

LINESTYLE

Define the style of the connection. Commonly used values:

  • 0 (default): row connection, which can be:

    • FLOW (Row > Main) for most flow handling components
    • FILTER (Row > Filter) or REJECT (Row > Reject) for tFilterRow
  • 1: SUBJOB_OK (Trigger > On Subjob OK)
  • 3: COMPONENT_OK (Trigger > On Component OK)
  • 4: SUBJOB_ERROR (Trigger > On Subjob Error)
  • 5: COMPONENT_ERROR (Trigger > On Component Error)
  • 6: RUN_IF (Trigger > Run If):
  • 7: Iterate
  • 8: LOOKUP (Row > Lookup)
  • 9: TABLE (for ELT components)
  • 10: Merge (for tUnite)
  • 12: SYNCHRONIZE (Trigger > Synchronize, for tParallelize)
  • 13: PARALLELIZE (Trigger > Parallelize, for tParallelize)

No

SOURCE

Type in the name of the source component.

Yes

TARGET

Type in the name of the target component.

Yes

MONITOR_CONNECTION

Set this parameter to true to monitor the data flow over the connection. The measured information will be interpreted and displayed in a monitoring tool such Talend Activity Monitoring Console. For information about Talend Activity Monitoring Console, see Talend Activity Monitoring Console User Guide.

By default, this parameter is set to false.

No

Example

The following Job script example shows how to define a Row > Main connection between tFileInputDelimited_1 and tLogRow_1.

addConnection {
	TYPE: "FLOW",
	NAME: "row1",
	LINESTYLE: 0,
	METANAME: "tFileInputDelimited_1",
	SOURCE: "tFileInputDelimited_1",
	TARGET: "tLogRow_1"
	}
}