Adding a component in a Job script - 6.5

Talendジョブスクリプトリファレンス

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Big Data
Talend Big Data Platform
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
task
ジョブデザインと開発 > ジョブデザイン
EnrichPlatform
Talend CommandLine
Talend Studio

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
	}
...
}