August 15, 2023

Configuring the process of filtering and extracting the data of interest – Docs for ESB 6.x

Configuring the process of filtering and extracting the data of interest

To do this, proceed as follows:

  1. In the design workspace, connect tStandardizeRow to tFilterColumns with a Row
    > Main link.
  2. In the Basic settings view of tFilterColumns, click the […] button next to the Edit
    schema
    field to open the schema editor.

    Use_Case_tStandardizeRow_s2_FilterColumnsschema.png

  3. Click on the STANDARDIZED_FIELD column, click the
    first arrow to filter this column, and then click OK to close the editor and validate the changes.
  4. In the design workspace, connect tFilterColumns to tExtractXMLField with a Row
    > Main link.
  5. Double-click the tExtractXMLField
    component to display its Basic settings
    view.
  6. Click the […] button next to the
    Edit schema field to open the schema
    editor, add four columns and name them respectively
    number, street,
    zip and city, and then click
    OK to validate and close the
    editor.

    Use_Case_tStandardizeRow_s2_SchemaExtractXML.png

  7. In the XML field field, check that the
    STANDARDIZED_FIELD column is selected.

    The content of the STANDARDIZED_FIELD column is an
    XML field with a <record> tag as root. Under this tag,
    the structure defined by the rules configured in the tStandardizeRow component allows to extract each item of the
    address, as you can see in the following capture.
    Use_Case_tStandardizeRow_s2_Result1.png

  8. In the Loop XPath query field, type in
    “/record/Address”.
  9. In the Mapping table, in the XPath query field, enter
    “INT” for the number column,
    “StreetName” for the street
    column, “Zip” for the zip column
    and “City” for the city
    column.

Then you can prepare to execute the Job.


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