tMDMViewSearch
Retrieves the MDM records from an MDM hub by applying filtering criteria you have
created in a specific view and puts out results in XML structure.
For more information on a view on which you can define filtering
criteria, see Talend Studio User Guide.
tMDMViewSearch Standard properties
These properties are used to configure tMDMViewSearch running in the Standard Job
framework.
The Standard
tMDMViewSearch component belongs to the Talend MDM family.
The component in this framework is available in all Talend
products.
Basic settings
Schema and Edit Schema |
A schema is a row description, it defines the Click Edit
Click Sync columns to collect the schema from the previous |
 |
Built-in: You create the |
 |
Repository: You have |
XML Field |
Select the name of the column in which you want |
Use an existing connection | Select this check box if you want to use a configured tMDMConnection component. |
MDM version |
By default, Server 6.0 is selected. Although it is |
URL |
Type in the URL of the MDM server. |
Username and Password |
Type in the user authentication data for the To enter the password, click the […] button next to the |
Data Container |
Type in the name of the data container that |
Type |
Select Master or Staging to specify the database on which the |
View Name |
Type in the name of the view whose filters will |
Operations |
Complete this table to create the WHERE clause.
|
Order (One Row) |
Complete this table to decide the presentation
Warning:
|
Spell Threshold |
Set it to -1 to deactivate this threshold. |
Skip Rows |
Type in the count of rows to be ignored to |
Max Rows |
Type in the maximum number of rows to be |
Advanced settings
Batch Size |
Number of lines in each processed batch. By |
tStatCatcher Statistics |
Select this check box to gather the processing |
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the
NB_LINE: the number of rows processed. This is an After 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 |
Usage
Usage rule |
Use this component to retrieve specific You can increase the timeout values for a Job using this component |
Connections |
Outgoing links (from this component to Row: Iterate
Trigger: Run if; On Incoming links (from one component to this Row: Iterate;
Trigger: Run if, On For further information regarding |
Retrieving records from an MDM hub via an existing view
This scenario applies only to Talend MDM Platform and Talend Data Fabric.
This scenario describes a two-component Job that retrieves a data record in XML
structure.
In this example, you will select the T-Shirt information from
the Product entity via the Browse_items_Product view created from
Talend Studio
. Each record in the entity contains the details defined as filtering criteria: Id, Name, Description and Price.
-
From the Palette, drop tMDMViewSearch and tLogRow onto the design
workspace. -
Connect the components using a Row Main link.
-
Double-click tMDMViewSearch to view its Basic settings, in the Component
tab and set the component properties.
-
In the Schema list, select Built-In and click the three-dot button next to Edit
schema to open a dialog box in which you can define the structure of the XML
data you want to write in.
-
Click the plus button and add one column of the type String. Name the column as Tshirt.
-
Click OK to validate your creation and proceed to the
next step. -
In the XML Field field, select
Tshirt as the column you will write the retrieved data in. -
Use your MDM server address in the URL field and type in the
corresponding connection data in the Username and the Password fields. -
In the Data Container field, type in the container
name: Product. -
In the View Name field, type in the view name: Browse_items_Product.
-
Below the Operations table, click the plus button to
add one row in this table. -
In the Operations table, define the XPath as Product/Name, meaning that the filtering operation will be performed at the
Name node, then select Contains in the Function column and type in Tshirt in the Value
column. -
Below the Order (One Row) table, click the plus
button to add one row in this table. -
In the Order (One Row) table, define the XPath as Product/Id and select the asc order for the Order
column. -
In the design workspace, click tLogRow to open its
Basic settings view and set the properties.
-
Next to the three-dot button used for editing schema, click Sync
columns to acquire the schema from the preceding component. -
Press F6 to execute the Job.
In the console docked in the Run view, you can read the
retrieved Tshirt records in XML structure, which are sorted in the
ascending order.