|Skip Navigation Links|
|Exit Print View|
|Oracle Java CAPS Master Index Standardization Engine Reference Java CAPS Documentation|
You can define new data types and their corresponding variants using the flexible FSM framework of the standardization engine. Data types are easily incorporated into a master index project and can be made globally available to all projects. Perform the following steps to define a custom data type for the standardization engine.
The working directory for custom data types requires a specific structure. At a minimum, the working directory will look similar to the following:
/WorkingDir serviceType.xml /lib /instance /Generic serviceInstance.xml /resource standardizer.xml
If the date type has several variants, the directory structure will not include the Generic folder, but will contain several folders named by the variants name in its place. Each variant folder must be of the same structure as the Generic folder shown above. The resource directory might also contain several normalization and lexicon files.
The serviceType.xml file defines information about the data type, and is a required file for each data type.
Tip - You can copy the service type file from an existing data type and modify it for your use.
<serviceType configurationResource="standardizer.xml"> <description>My Data Type Standardization</description> <parameter name="fields"> <list> <value>Data Field1</value> <value>Data Field2</value> ... </list> </parameter> </serviceType>
Note - For more information about the elements in this file, see Service Type Definition File.
For each data type you create, you need to create one or more variants that define the logic for processing a specific type of data.
Perform the following steps for each variant that will be used for the data type you are creating.
Create the serviceInstance.xml file in /WorkingDir/instance/VariantName.
Create the standardizer.xml file in /WorkingDir/instance/VariantName/resource.
Create the files in /WorkingDir/instance/VariantName/resource.
Once you have created all the files for the data type, you need to package them into a ZIP file to be imported into a master index application.
The ZIP file structure should like similar to the following:
Figure 1 Custom Data Type Zip File
Each data type is configured by a service type definition file, serviceType.xml. Service type files define the fields to be standardized for a data type. The following table lists and describes the elements in the service type file.