In object.xml, create the field that will contain the new normalized value. For more information, see Adding a Field to the Master Index Object Structure.
In the Projects window, expand the Configuration node in the project you want to modify, and then double-click mefa.xml.
The file opens in the NetBeans XML editor.
In the structures-to-normalize element, create and name a new group element.
Make sure the new element falls within the structures-to-normalize element, but outside any existing group tags.
In the new group element, define the standardization-type and domain-selector attributes (these are described in Master Index Normalization and Standardization Structure Properties.
If you specified the multiple domain selector for the domain-selector attribute, do the following:
In the group element, create a locale-field-name element and a locale-maps element (described in Master Index Normalization and Standardization Structure Properties and Master Index Variants Properties).
For each variant you want to use, define a locale-codes, value, and locale element in the locale-maps element (described in Master Index Variants Properties).
To specify the source fields to normalize, do the following:
Create a new unnormalized-source-fields element in the group element.
Create a source-mapping element in the new unnormalized-source-fields element.
Define the unnormalized-source-field-name and standardized-object-field-id elements (these are described inMaster Index Normalization and Standardization Structure Properties).
To map the normalized data to destination fields, do the following:
Create a new normalization-targets element under the unnormalized-source-fields element that defines the field to map.
Create a target-mapping element in the new normalization-targets element.
Define the standardized-object-field-id and standardized-target-field-name elements (these are described in Master Index Normalization and Standardization Structure Properties).
Save and close the file.
<structures-to-normalize> <group standardization-type="PersonName" domain-selector= "com.sun.mdm.index.matching.impl.MultiDomainSelector"> <locale-field-name>Person.PobCountry</locale-field-name> <locale-maps> <locale-codes> <value>GB</value> <locale>UK</locale> </locale-codes> <locale-codes> <value>UNST</value> <locale>US</locale> </locale-codes> <locale-codes> <value>Default</value> <locale>US</locale> </locale-codes> </locale-maps> <unnormalized-source-fields> <source-mapping> <unnormalized-source-field-name> Person.Alias[*].FirstName </unnormalized-source-field-name> <standardized-object-field-id>FirstName </standardized-object-field-id> </source-mapping> <source-mapping> <unnormalized-source-field-name> Person.Alias[*].LastName </unnormalized-source-field-name> <standardized-object-field-id>LastName </standardized-object-field-id> </source-mapping> </unnormalized-source-fields> <normalization-targets> <target-mapping> <standardized-object-field-id>FirstName </standardized-object-field-id> <standardized-target-field-name> Person.Alias[*].StdFirstName </standardized-target-field-name> </target-mapping> <target-mapping> <standardized-object-field-id>LastName </standardized-object-field-id> <standardized-target-field-name> Person.Alias[*].StdLastName </standardized-target-field-name> </target-mapping> </normalization-targets> </group> |