Defining the connections linking the components - 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 define the connections that link the components in the Job.

Procedure

  1. Next to the output component definition, enter an addConnection {} function to add a connection.
  2. In the addConnection {} function, enter the parameters required to define the connection properties:
    • Connection type

    • Connection name

    • Connection style

    • Source component

    • Target component

    The example below defines a main row connection between the first tFileInputDelimited component and the tMap component.

    addConnection {
    	TYPE: "FLOW",
    	NAME: "row1",
    	LINESTYLE: 0,
    	SOURCE: "tFileInputDelimited_1",
    	TARGET: "tMap_1"
    }
    Warning:

    The name of this connection must match the main input table name defined in the tMap settings.

  3. Enter another addConnection {} function and define a lookup row connection between the section tFileInputDelimited component and the tMap component.
    addConnection {
    	TYPE: "FLOW",
    	NAME: "row2",
    	LINESTYLE: 8,
    	SOURCE: "tFileInputDelimited_2",
    	TARGET: "tMap_1"
    }
    Warning:

    The name of this connection must match the lookup input table name defined in the tMap settings.

  4. Enter another addConnection {} function and define a main row connection between the tMap component and the tFileoutputDelimited component.
    addConnection {
    	TYPE: "FLOW",
    	NAME: "out",
    	LINESTYLE: 0,
    	SOURCE: "tMap_1",
    	TARGET: "tFileOutputDelimited_1"
    }
    Warning:

    The name of this connection must match the corresponding output schema and output table names defined in the tMap.