The data types configuration file
PolicyCenter lets you modify certain attributes on a subset of the base configuration data types by using the datatypes.xml configuration file. You can access this file in Guidewire Studio™ from . You can modify the values of certain attributes in this file to customize how these data types work in PolicyCenter.
This datatypes.xml file contains the following elements:
XML element |
Description |
|---|---|
|
Top XML element for the datatypes.xml file. |
|
Subelement that defines
a specific customizable data type
(for example, |
<...DataType>
The <...DataType>
element is the basic element of the datatypes.xml
file. It assigns default values to base configuration data types that
you can customize. This element starts with the specific data type name.
For example, the element for the PercentageDec
data type in the datatypes.xml
file is <PercentageDecDataType>.
The <...DataType>
element has the following attributes:
Attribute |
Description |
|---|---|
|
Assigns the maximum character length of the data type. |
|
Binds the data type
to a given validator definition. It must match the |
|
Used for
The value of For more information, see The Precision and Scale attributes. |
|
Optional attribute
for use with For more information, see The Money data type. |
Deploying modifications to the data types configuration file
If you change the datatypes.xml file, then you need to deploy those changes to the application server. Most modifications to the datatypes.xml file take effect the next time the server reboots.
- PolicyCenter reloads the
validatorattribute for data type definitions upon server reboot. This is so that you can rebind different validators to data types. - PolicyCenter does not reload other
data type attributes such as
length,precision, andscale. This is because PolicyCenter applies these attributes only during the initial server boot. (It uses them during table creation in the database.) PolicyCenter ignores any changes to these attributes unless something triggers a database upgrade. For example, if you modify a base entity, then PolicyCenter triggers a database upgrade at the next server restart.
Recommendations for modifying data types
Guidewire recommends the following:
- Make modifications to the data types before creating the PolicyCenter database for the first time.
- Make modifications to the data types before performing a database upgrade that creates a new extension column.
PolicyCenter looks at the data type definitions only at the time it creates a database column. Thus, it ignores any changes after that point. However, any differences between the type definition and the actual database column can cause upgrade errors or failure warnings. Therefore, Guidewire recommends that you exercise extreme caution in making changes to type definitions.
