How to invoke Talend MDM staging area validation with a Job

Overview

The Talend MDM (Master Data Management) Staging Area stores non-validated data. How can you validate data in the Staging Area?

 

You can do it in the Web User Interface, as shown below:

stagingarea.png

 

Environment

This procedures applies to versions of Talend MDM before 6.0.

 

Resolution

Talend MDM provides a REST API to perform a staging area validation.

  1. POST the REST URL, as follows:

    • Before 6.0, the URL is:
      http:/ /localhost:8180/datamanager/services/tasks/staging/TestDataContainer/?model=TestDataModel
    • After 6.0, the URL is:
      http:/ /localhost:8180/talendmdm/services/rest/tasks/staging/TestDataContainer


  2. Create a Job, add a tRESTClient component onto the design workspace and set the HTTP Method to POST. trest.png


  3. In the URL field, type in

    http:/ /localhost:8180/datamanager/services/tasks/staging/TestDataContainer/?model=TestDataModel


  4. Run the Job by pressing F6. The Job invokes the Staging Area validation and the Talend MDM server console outputs the following: stagingvalidate.png


  5. In the Staging Area view of the Web User Interface, you will find 17 records that passed the validation. validate.png


Steps to reproduce the issue

  1. Import mdmitems.zip (attached) to the studio, deploy all the items to MDM servers.
  2. Import jobs.zip (attached) to the studio, run the Job loadjob to load the data into the datacontainer Entity in the Staging Area.
  3. Run the Job tRestClient, it will invoke the Staging Area validation and move the data to the master area.
Version history
Revision #:
10 of 10
Last update:
‎04-25-2017 11:22 AM
Updated by:
 
Labels (1)
Contributors
Tags (1)