The serviceInstance.xml file for each variant defines the name of the variant, the data type it modifies, and additional Java class information.
Create a file named serviceInstance.xml at the top level of your working directory.
You can copy a service instance file from an existing variant in the data type to which you will add the new variant, and then modify it for the new variant.
Define values for the elements and attributes described in Service Instance Definition File.
This example defines a new Spanish variant to the PersonName data type.
<serviceInstance type="PersonName"> <description>Person Name Standardization: Spain</description> <parameter name="dataType" value="PersonName" /> <parameter name="variantType" value="SP" /> <componentManagerFactory class="com.sun.inti.components.component.BeanComponentManagerFactory"> <property name="stylesheetURL" value="classpath:/com/sun/mdm/standardizer/impl/standardizer.xsl"/> <property name="urlSource" > <bean class="com.sun.inti.components.url.ResourceURLSource"> <property name="resourceName" value="standardizer.xml /> </bean> </property> </componentManagerFactory> </serviceInstance> |
The value you enter for the variantType parameter must match the name you want the variant to display in the Standardization folder of the master index project.
Save and close the file.
Continue to Defining the State Model and Processing Rules.