Skip to main content Skip to complementary content

Adding components to the Route

About this task

Now that the Route is created, you need to add components to the design workspace, a cTimer, a cSetBody, and a cLog 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. 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.

  • add a component by directly typing the partial or full name of the component on the design workspace.

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

Adding the first Route component from the Palette

About this task

The first component of this example will be added from the Palette, the cTimer to trigger the message exchange.

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

Procedure

  1. Enter the search keywords in the search field of the Palette and press Enter to validate your search.
    The keywords 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, timer, or generate message exchange. The Palette filters to the only families where the component can be found. If you cannot find the Palette view in Talend Studio, see Changing the Palette layout and settings.
    Information noteNote: Components may not always have a prefix letter in the name. Therefore, as a best practice, you may want to simply specify the main body when searching for a component by its name.
    Palette view.
  2. Select the component you want to use and click on the design workspace where you want to drop the component.

Results

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

Design workspace with the Palette view open.

Typing on the design workspace to add the second Route component

About this task

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

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

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

Procedure

  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 cset.
    Information noteNote: Components may not always have a prefix letter in the name. Therefore, as a best practice, you may want to simply specify the main body when searching for a component by its name.
    A list box appears below the text field displaying all the matching components in alphabetical order.
    Design workspace.
  2. Double-click the desired component to add it on the workspace, cSetBody in our example.

Dragging from an input Route component to add an output one

About this task

Now you will add the third component, a cLog, to log the message exchanges. We will add the component by dragging from the cSetBody component, which serves as an input component to the new one to be added.

Procedure

  1. Click the cSetBody component, and drag and drop the arrow icon displayed onto the design workspace.
    A text field and a component list appear. The component list shows all the components that can be connected with the input component.
    Design workspace.
  2. 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, cLog in this example, on the component list to add it onto the design workspace. The new component is automatically connected with the input component cSetBody, using a Row > Route connection.
    Information noteNote: Components may not always have a prefix letter in the name. Therefore, as a best practice, you may want to simply specify the main body when searching for a component by its name.
    Job in the design workspace.

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!