Removing or retiring a typekey
Ensure that you fully understand the dependencies between typelists and other application files before you modify a typelist.
In general, Guidewire does not recommend that you make changes to existing typelists other than the following:
- Extending a non-final typelist to add additional typekeys.
- Retiring a typekey, which makes it invisible in the PolicyCenter interface, but leaves the typekey in the application database.
Be very careful of removing typekeys from a typelist as it is possible that multiple application files reference that particular typekey. Removing a typekey incorrectly can cause the application server to not start. Guidewire recommends that you retire a typekey rather than remove it.
It is not possible to remove a typekey from a typelist marked as final. It is also not possible to remove a typekey marked as internal. PolicyCenter indicates internal typekeys by placing their typecode values in gray, non-editable cells. This makes these typecode values inaccessible and impossible to modify.
Remove a typekey
If you remove a typekey, you must ensure that PolicyCenter does not contain code that refers to that typekey.
About this task
Suppose that you delete the email_sent typekey from the base configuration
DocumentType typelist. If you remove this typekey, you must also update
all other parts of PolicyCenter and prohibit the production of
documents of that type. In particular, you must remove references to the typekey from any
.descriptor file that references that typekey. In this case, a search of
the document template files finds that the
CreateEmailSent.gosu.htm.descriptor file references
email_sent.
Procedure
- Navigate to the typelist that contains the typekey that you want to remove.
-
Click the typekey, and then click Remove
.
-
Search for additional references to the typekey in the application files and
remove any that apply. Pay particular attention to
.descriptorfiles. To remove a typekey reference:- Perform a case-insensitive text search throughout PolicyCenter files to find all references to the deleted typekey.
- Open these files in Studio and modify as necessary.
Retire a typekey
Procedure
- Navigate to the typelist that contains the typekey that you want to retire.
- Select the Retired cell of the typekey that you want to retire.
- Set the cell value to true.
What to do next
If you retire a typekey, Guidewire recommends that you perform the steps outlined in Remove a Typekey to identify any issues with the retirement:
- Verify all Studio resources.
- Perform a case-insensitive search in the application files for the retired typekey.
