Add system table in Studio
About this task
Use Studio to add a new system table.
Procedure
-
In Studio,
create a file named entity.eti.
- In the Project window, navigate to .
- Right click the Entity node, and then select from the menu.
- Enter the name of the entity, and select Extendable, Exportable, and Final.
-
Add columns,
typekeys, or other fields. For example, add a
Jurisdictiontypekey with the following values:
Examine an entity definition for an existing system table in the folder for an example of how to define your system table entity.Name
Value
nameJurisdictiontypelistJurisdictionnulloktrue
-
In Studio, create a file named entity.xml.
- In the Project window, navigate to .
- Right click the systables node, and then select from menu.
- Enter the name of the entity, including the .xml extension.
-
Add the
following elements to your new XML file, including elements for the table
columns you defined in the entity. The following example includes a column
for
Jurisdiction:<?xml version="1.0"?> <import xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.guidewire.com/cc/import/cc_import.xsd"> <Jurisdiction/> </import> - Save the XML file.
-
In Studio, add a new
FileDefinitionelement for your new system table to systables.xml:- In the Project window, navigate to and open systables.xml.
-
Add a
FileDefinitionelement that provides a link between the system table XML file and the system table entity file. For example:<FileDefinition Name="my_class_codes.xml" Priority="0"> <Entity Type="MyClassCodes"/> </FileDefinition> - If needed, add parameters to specify a verifier class and whether to manage the system table externally.
-
Use Product Designer to fill in system table values, as follows:
- Log into Product Designer. If you are already logged in, log out and log in again to reload the PolicyCenter configuration values.
- Navigate to System Tables, and then locate and open your new system table XML file.
- Add rows to the system table using Product Designer.
