Follow the steps below to add and define the connections that link the components in the Job.
Procedure
- Next to the output component definition, enter an addConnection {} function to add a connection.
-
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.
-
-
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.
-
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.