Adding components to the Job

Talend Open Studio for ESB User Guide

EnrichVersion
6.4
EnrichProdName
Talend Open Studio for ESB
task
Design and Development
EnrichPlatform
Talend Studio

Now that the Job is created, components have to be added to the design workspace, a tFileInputDelimited, a tLogRow, and a tFileOutputDelimited in this example.

There are several ways to add a component onto the design workspace. You can:

  • find your component on the Palette by typing the search keyword(s) in the search field of the Palette and drop it onto the design workspace.

  • add a component by directly typing your search keyword(s) on the design workspace.

  • add an output component by dragging from an input component already existing on the design workspace.

  • drag and drop a centralized metadata item from the Metadata node onto the design workspace, and then select the component of interest from the Components dialog box.

This section describes the first three methods. For details about how to drop a component from the Metadata node, see Managing Metadata.

Dropping the first component from the Palette

The first component of this example will be added from the Palette. This component defines the first task executed by the Job. In this example, as you first want to read a text file, you will use the tFileInputDelimited component.

To drop a component from the Palette, proceed as follows:

  1. Enter the search keyword(s) in the search field of the Palette and press Enter to validate your search.

    The keyword(s) can be the partial or full name of the component, or a phrase describing its functionality if you don't know its name, for example, tfileinputde, fileinput, or read file row by row. The Palette filters to the only families where the component can be found. If you cannot find the Palette view in the Studio, see How to change the Palette layout and settings.

    Note

    To use a descriptive phrase as keywords for a fuzzy search, make sure the Also search from Help when performing a component searching check box is selected on the Preferences > Palette Settings view. For more information, see Palette preferences (Talend > Palette Settings).

  2. Select the component you want to use and click on the design workspace where you want to drop the component.

Note that you can also drop a note to your Job the same way you drop components.

Each newly-added component is shown in a blue box to show that it as an individual Subjob.

Adding the second component by typing on the design workspace

The second component of our Job will be added by typing its name directly on the workspace, instead of dropping it from the Palette or from the Metadata node.

Prerequisite: Make sure you have selected the Enable Component Creation Assistant check box in the Studio preferences. For more information, see How to use centralized metadata in a Job.

To add a component directly on the workspace, proceed as follows:

  1. Click where you want to add the component on the design workspace, and type your keywords, which can be the full or partial name of the component, or a phrase describing its functionality if you don't know its name. In our example, start typing tlog.

    Note

    To use a descriptive phrase as keywords for a fuzzy search, make sure the Also search from Help when performing a component searching check box is selected on the Preferences > Palette Settings view. For more information, see Palette preferences (Talend > Palette Settings).

    A list box appears below the text field displaying all the matching components in alphabetical order.

  2. Double-click the desired component to add it on the workspace, tLogRow in our example.

Adding an output component by dragging from an input one

Now you will add the third component, a tFileOutputDelimited, to write the data read from the source file into another text file. We will add the component by dragging from the tLogRow component, which serves as an input component to the new one to be added.

  1. Click the tLogRow component to show the o icon docked to it.

  2. Drag and drop the o icon where you want to add a new component.

    A text field and a component list appear. The component list shows all the components that can be connected with the input component.

  3. To narrow the search, type in the text field the name of the component you want to add or part of it, or a phrase describing the component's functionality if you don't know its name, and then double-click the component of interest, tFileOutputDelimited in this example, on the component list to add it onto the design workspace. The new component is automatically connected with the input component tLogRow, using a Row > Main connection.

    Note

    To use a descriptive phrase as keywords for a fuzzy search, make sure the Also search from Help when performing a component searching check box is selected on the Preferences > Palette Settings view. For more information, see Palette preferences (Talend > Palette Settings).