Skip to main content Skip to complementary content
Close announcements banner

Configuring the Job to buffer data

Procedure

  1. In the Context 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.

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

    For more information about how to define context variables, see Using contexts and variables.

  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.

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!