Component family |
Talend MDM |
|
Function |
tMDMInput reads master data in the MDM |
|
Purpose |
This component reads master data in an MDM Hub and thus makes it possible to |
|
Basic Settings |
Property Type |
Either Built in or Repository. Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository file where |
|
Schema and Edit Schema |
A schema is a row description, it defines the number of fields that will be Since version 5.6, both the Built-In mode and the Repository mode are Click Edit schema to make changes to the schema. If the
|
|
|
Built-in: The schema will be created and stored |
|
|
Repository: The schema already exists and is |
Use an existing connection | Select this check box if you want to use a configured tMDMConnection component. | |
|
URL |
Type in the URL to access the MDM server. |
|
Username and Password |
Type in 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 Version you want to connect to and to which Leave this field empty if you want to display the default Version. |
|
Entity |
Type in the name of the business entity that holds the master data you want to |
|
Data Container |
Type in the name of the data container that holds the master data you want to |
Type |
Select Master or Staging to specify the database on which the action should be |
|
|
Use multiple conditions |
Select this check box to filter the master data using certain conditions. Xpath: Enter between quotes the path and the Function: Select the condition to be used from The following operators are available:
Value: Enter between inverted commas the value Predicate: Select a predicate if you use more The following predicates are available:
The other predicates are reserved for future use and may be subject to If you clear this check box, you have the option of selecting particular IDs to NoteIf you clear the Use multiple conditions |
|
Skip Rows |
Enter the number of lines to be ignored. |
|
Max Rows |
Maximum number of rows to be processed. If Limit = 0, no row is read or |
|
Die on error |
Select this check box to skip the row in error and complete the process for |
Advanced settings |
Batch Size |
Number of lines in each processed batch. NoteThis option is not displayed if you have cleared the Use |
|
Loop XPath query |
The XML structure node on which the loop is based. |
|
Mapping |
Column: reflects the schema as defined in the
XPath query: Type in the name of the fields to
Get Nodes: Select this check box to retrieve the |
|
tStatCatcher Statistics |
Select this check box to gather the processing metadata at the Job level as well |
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 Talend Studio |
|
Usage |
Use this component as a start component. It needs an output flow. |
This scenario describes a two-component Job that reads master data on an MDM server. The
master data is fetched and displayed in the log console.
-
From the Palette, drop tMDMInput and tLogRow onto the design
workspace. -
Connect the two components together using a Row Main
link. -
Double-click tMDMInput to open the Basic settings view and define the component properties.
-
In the Property Type list, select Built-In to complete the fields manually. If you have stored the
MDM connection information in the repository metadata, select Repository from the list and the fields will be completed
automatically. -
In the Schema list, select Built-In and click the three-dot button next to Edit
schema to open a dialog box. Here you can define the structure of the master
data you want to read on the MDM server.
-
The master data is collected in a three column schema of the type String: ISO2Code, Name
and Currency. Click OK to close the
dialog box and proceed to the next step. -
In the URL field, enter between inverted commas the
URL of the MDM server. -
In the Username and Password fields, enter your login and password to connect to the MDM
server. -
In the Version field (deprecated), enter between
inverted commas the name of the master data Version you want to access. Leave this field
empty to display the default Version. -
In the Entity field, enter between inverted commas
the name of the business entity that holds the master data you want to read. -
In the Data Container field, enter between inverted
commas the name of the data container that holds the master data you want to read. -
In the Component view, click Advanced settings to set the advanced parameters.
-
In the Loop XPath query field, enter between inverted
commas the structure and the name of the XML node on which the loop is to be carried
out. -
In the Mapping table and in the XPath query column, enter between inverted commas the name of the XML tag in
which you want to collect the master data, next to the corresponding output column
name. -
In the design workspace, click on the tLogRow
component to display the Basic settings in the Component view and set the properties. -
Click on Edit Schema and ensure that the schema has
been collected from the previous component. If not, click Sync
Columns to fetch the schema from the previous component. -
Save the Job and press F6 to run it.
The list of different countries along with their codes and currencies is displayed on the
console of the Run view.