Adding a component in a Job script - 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

To add and configure a component in a Job script, type in the addComponent{} function and define its properties between the brackets.

Component properties can be divided into three main parts:

  • component definition
  • specific settings
  • component schema

addComponent{} properties

Function Description Mandatory?

setComponentDefinition{}

Add the following parameters in this function to define the general properties:

  • TYPE: Type in the component you want to use.

  • NAME: Type in the unique name you want to give to the component.

  • POSITION (optional): Type in the position of the component in the design workspace.

Yes

setSettings {}

Define the component settings. The parameters of this function are specific to each component.

For more information, see Job script properties of frequently used components.

Yes

addSchema {}

Use this function to define the schema of the component.

For more information, see Defining a schema in a Job script.

Yes for most components

Example

The following example shows how to add a tFileInputDelimited component in a Job script.

addComponent {
	setComponentDefinition {
		TYPE: "tFileInputDelimited",
		NAME: "tFileInputDelimited_1",
		POSITION: 192, 128
	}
...
}