How to create a standalone process in the Talend MDM UI


The purpose of this tutorial is to show how to create a process link in the MDM user interface that directly calls a job that was created in the Talend Studio.


Create a data model and a data container Customers. Add the elements CustomersIdFirstName, LastName, Location 

    Datamodel  

Generate a view for the entity Customer 

Generate view

Deploy the data model, data container and the view to the MDM Server. In your web browser navigate to http://localhost:8180/talendmdm (user: user, password: user). In the Domain Configuration select the Customers model and the Customers container. Open the Master Data Browser and select the entity Customer. Create a few new records within the Master Data Browser:

Create records

Create a new job called CustomersToCSV and put the following three components on the designer canvas:

Add three components

Double click the TMDMInput component and set the basic settings (password: “talend”):

tMDMInput basic

Set the advanced settings:

tMDMInput advanced

Connect the TMDMInput to the Tmap component with a Main row:

Connect tMDMInput and tMap

Double click the Tmap component, add a new output table and drag the input columns to the output table.

Edit tMap

Connect the Tmap component to the tFileOutputDelimited component with a row that has the name of the new created output table:

Connect tMap and tFileOutputDelimited

Double click the tFileOutputDelimited component and enter the file name and path that you want for your output file. Select the Include Header check box if you want to include the column names in the output file.

tFileOutputDelimited settings

After completing the job be sure to deploy it to the MDM server! You can leave all the settings for deploying as they are.

Now to be able to call this job from the MDM UI you will have to create a new process under Event Management – Process (MDM Perspective). Right click Welcome Action and click New.

New Welcome Action

In the next screen click Next and in the screen that follows enter ExportToCSV in the Optional Name field. Click Next and then click Finish.

Optional Name

Set the description for the process:

Description process

Add a new step called Calljob and remove the steps that existed already.

Add step Calljob

In the step specification of Calljob select the plugin name calljob. And then set the input variable and parameter as well as the output variable and parameter. In the Parameters area you will need to specify the url of the Talend job that you want to call.

Step specification

Now deploy this process to the MDM server and relogin to the MDM UI via the web browser. At this point the new process should show up in the Processes box and it will run by clicking it.

Processes box

 

A message appears when the process is finished:

Message Proces done

And here is the content of the csv output file:

CSV Output


This tutorial was created using Talend Open Studio for MDM version 5.6.1.

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd met *

FacebookTwitterGoogle+RSS