Configuring the Job to buffer data - 7.3

Buffer

Version
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Buffer components
Data Quality and Preparation > Third-party systems > Buffer components
Design and Development > Third-party systems > Buffer components
Last publication date
2024-02-21

Procedure

  1. In the Contexts view, add a new context variable with the Name of xmlInput and the Type of String.

    In this example, the context variable xmlInput of the Job will be specified in the MDM process which wants to invoke this Job.

    You can search for further information about MDM processes on Talend Help Center (https://help.talend.com).

    If you cannot find the Contexts view, go to Window > Show view > Talend, and select Contexts.

    For more information about how to define context variables, see Talend Studio User Guide.

    You can search for further information about how to define context variables on Talend Help Center (https://help.talend.com).

  2. Double-click the tJava component to open its Component view, and in the Code area, enter the code according to your needs.
    In this example, enter System.out.println("#############################"+context.xmlInput);.
  3. Double-click the tFixedFlowInput component to open its Component view.
  4. Click the [...] button next to Edit schema to open the dialog box and define the schema for the data to be used by the source system.
    In this example, add one new column col0 of the type String.
  5. After the schema is defined, click Yes in the Propagate dialog box to propagate the schema changes to the following component tBufferOutput.
  6. In the Number of rows field, enter 1.
  7. In the Mode area, select Use Single Table and enter "Paris" in the Value column that corresponds to the column col0 you have defined.
    In this example, the value of the col0 provides the agent region information to be retrieved by MDM.
  8. Double-click the tBufferOutput component to open its Component view, and then make sure its schema is synchronized with the previous component tFixedFlowInput.
  9. Run the Job and make sure the execution succeeds.