Skip to main content Skip to complementary content

Defining the connections linking the components

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"
    }
    Information noteWarning:

    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"
    }
    Information noteWarning:

    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"
    }
    Information noteWarning:

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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!