Defining a Job execution trigger - 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

Follow the steps below to add and configure the tLoop component to the Job script, to trigger the execution of the Job.

Procedure

  1. Create a new Job script, enter an addComponent {} function, and inside this function, enter the setComponentDefinition {} function and its parameters to add the tLoop component:
    addComponent {
    	setComponentDefinition {
    		TYPE: "tLoop",
    		NAME: "tLoop_1",
    		POSITION: 256, 192
    	}
    }
  2. Next to the setComponentDefinition {} function, enter the setSettings {} function to define a loop.

    In this example, a FOR loop is defined to trigger the Job execution 3 times.

    	setSettings {
    		FORLOOP : "true",
    		FROM : "1",
    		TO : "3",
    		STEP : "1",
    		INCREASE : "true"
    	}