Skip to main content Skip to complementary content
Close announcements banner

Adding a component in a Job script

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

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 – let us know how we can improve!