
Component family |
Talend |
|
Function |
tMDMRouteRecord submits the For more information on Event |
|
Purpose |
This component helps Event |
|
Basic Settings |
Use an existing connection |
Select this check box if you want to use a configured tMDMConnection component. |
URL | Type in the URL of the MDM server. | |
|
Username and |
Type in the user authentication data for the MDM server. To enter the password, click the […] button next to the |
|
Version (deprecated) |
Type in the name of the master data management Version you want to Leave this field empty if you want to display the default perspective. |
|
Data Container |
Type in the name of the data container that holds the record you |
Type |
Select Master or Staging to specify the database on which |
|
|
Entity Name |
Type in the name of the business entity that holds the record you |
|
IDs |
Specify the primary key(s) of the record(s) you want Event Manager to read. |
Advanced settings |
tStatCatcher Statistics |
Select this check box to gather the processing metadata at the Job |
Connections |
Outgoing links (from this component to another): Row: Iterate
Trigger: Run if; On Component Ok; Incoming links (from one component to this one): Row: Iterate;
Trigger: Run if, On Component Ok, For further information regarding connections, see Talend Studio User |
|
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
Use this component as a start component. It needs an output |
In this scenario, the tMDMRouteRecord component is
used to submit the primary key of a record noting an update to Event Manager in order for this element to trigger a process that
informs the user of this update.
Warning
Talend Studio is case-sensitive, so respect the differences of uppercase
and lowercase when realizing the scenario.
The following prerequisites must be met in order to replicate this
scenario:
-
A data container stores several records using a specific model. In this
scenario, the container is named Product, and a record
in the container is entered against the model named
Product:

This figure shows one of the stored product records with all of its viewable
attributes.
For further information about how to create a data container and a data model, see
your Talend Studio User Guide.
For further information about how to create a record and access its viewable
attributes, see the Talend MDM Web User Interface User
Guide.
A Job is used to inform the user of the update. In this scenario, the Job is
called message, and uses only the tMsgBox component.
-
Drop a tMsgBox component onto the
design workspace. -
Double-click the component to display and configure its Basic settings :
-
In the Title field, type in
“Talend MDM“. -
In the Message field to be displayed,
type in “A record is updated“. -
Save your Job and deploy it to the MDM Server.
For further information about the tMsgBox
component, see tMsgBox.
For further information about how to deploy a Job onto the MDM Server, see the
Talend Studio User Guide.
This section shows you how to replicate the whole scenario using tMDMRouteRecord to trigger a process.
-
Log onto your Talend
MDM Web UI and click Master Data Browser.For further details about how to log onto the Talend
MDM Web UI and open the Master Data Browser view, see Talend MDM Web User Interface User Guide. -
In the upper right corner of the web page, click on the
button to show the Actions panel.
-
On the Actions panel on the right, select
the required data container and data model in which is the record to be
updated. In this scenario, the data container and the data model are both
Product. -
Click Save to save the selected data
container and data model. -
In the Master Data Browser view, select
the Product entity. -
Double-click one of the product records to display its viewable attributes
in a new view dedicated to this product. For example, open the product
Talend Mug with the unique Id
231035938. -
In this view, modify one of the attribute values. You can, for example,
update this product and make it available by selecting the Availability check box. -
Click Save to validate this
update. -
Open your Talend Studio and
make sure you are connected to the MDM server. For further information about
how to launch the Talend Studio and
connect it to the MDM server, see Talend Studio
User Guide. -
In the MDM Repository tree view, under
the Job Designs node, right click the
message Job. -
In the contextual menu, select Generate Talend Job Caller
Process, accept the default options and click Generate.The process used to call this Job is
generated and stored under Event Management
> Process. -
Deploy your newly-created Process to the MDM Server.
-
Under the Event Management node, right
click Trigger. -
In the contextual menu, select New.
-
In the pop-up [New Trigger] wizard, name
the trigger, for example, TriggerMessage. -
Click OK to open the new trigger view in
the workspace of your studio. -
Configure the trigger to make it launch the process that calls the
message Job once an update is done. -
In the Description field, enter, for
example, Trigger that calls the Talend Job: message_0.1.war
to describe the trigger being created. -
In the Entity field, select or type in
the business entity you want to trigger the process on. In this example, it
is exactly Update. -
In the Service JNDI Name field, select
callprocess from the drop-down
list. -
In the Service Parameters field, select the CallJob_message check box.
-
In the Trigger xPath Expressions area,
click thebutton under the table to add a new XPath line.
-
In the newly added line, click the three-dot button to open a dialog box
where you can select the entity or element on which you want to define
conditions. In this example, it is
Update/OperationType. -
In the Value column, enter a value for
this line. In this example, it is exactly
UPDATE. -
In the Condition Id column, enter a
unique identifier for the condition you want to set, for example,
C1. -
In the Conditions area, enter the query
you want to undertake on the data record using the condition ID
C1 you set earlier. -
Press Ctrl+S to save the trigger, and
then deploy the trigger to the MDM Server. -
In the MDM Repository tree view, double
click Data Container > System > UpdateReport to open the Data
Container Browser UpdateReport view. An Update Report is a
complete track of all create, update or delete actions on any master
data.Note that, if the Update Report data
container is not available, you may first have to import it from your MDM
Server. For details of how to import system objects from the MDM Server to
your local repository, see the Talend Studio
User Guide. -
Next to the Entity field of this view,
click thebutton to search all the action records in the
UpdateReport. Note that the Update entity does not necessarily mean that the
corresponding action recorded is the update, as it is just the entity name
defined by the data model of UpdateReport
and may record different actions including create, delete, update.The last record corresponds to what you did to the product record at the
beginning of the scenario. The primary key of this record is
genericUI.1283244014172 and this is the record that
will be routed to Event trigger. -
In the Integration
perspective, right-click Job Designs, in
the Repository tree view. In the contextual
menu, select Create Job. -
A wizard opens. In the Name field, type
in RouteRecord, and click Finish. -
Drop the tMDMRouteRecord component from
the Palette onto the design
workspace. -
Double click this component to open its Component view.
-
In the URL field, enter the address of
your MDM server. This example uses
http://localhost:8180/talend/TalendPort. -
In the Username and the Password fields, type in the relevant
information. -
In the Data Container field, enter the
data container name that stores the record you want to route. It is
UpdateReport in this example. -
In the Entity Name field, enter the
entity name that the record you want to route belongs to. In this example,
the entity name is Update. -
In the IDS area, click the plus button
under the table to add a new line. -
In the newly added line, fill in the primary key of the record to be
routed to Event Manager, that is,
genericUI.1283244014172, as was read earlier from
the Data Container Browser
UpdateReport. -
Press F6 to run this Job. Event Manager calls the process to execute the
message Job and generate the dialog box informing
the user that this recorded has been updated.
This component submits the primary key of the record noting the update to
Event Manager. When Event
Manager checks this record and finds that this record meets the
conditions you have defined on the trigger TriggerMessage‘s
configuration view, it calls the process that launches the
message Job to pop up the dialog box informing the user of
this update.