August 15, 2023

Configuring the Job to buffer data – Docs for ESB 6.x

Configuring the Job to buffer data

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

Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x