Add a new ABContact subtype to ContactManager
Part of adding a vendor contact subtype is extending the ABContact entity in ContactManager.
Before you begin
About this task
In this step, you add an ABInterpreter subtype to ContactManager. This subtype is the counterpart of the Interpreter subtype you added to ClaimCenter in Add a field to the Doctor subtype in ClaimCenter.
Procedure
-
Start Guidewire Studio™ for ContactManager. At a command prompt, navigate to the ContactManager installation folder and enter the following command:
gwb studio - In the Project window open in Project view, navigate to .
- Right-click Entity and choose .
- In the Entity field, type the following name: ABInterpreter
- Click the Entity Type drop-down list and choose subtype.
- In the Desc field, type the following description: Interpreter
-
Click the Supertype search button
and choose ABPersonVendor from the drop-down list.
- Click OK.
- In the Entity editor for the new entity, click subtype at the top of the Element hierarchy.
- For Display name , enter Interpreter.
-
Click the drop-down list next to
and choose column.
-
Enter the following values for the new column:
Name Value name InterpreterSpecialty type varchar nullok false desc Interpreter's language specialties -
Click the drop-down list next to
and choose columnParam.
-
Enter the following values to specify the size of this
varcharcolumn:Name Value name size value 30 - Click subtype at the top of the Element hierarchy.
-
Click the drop-down list next to
and choose index.
-
Enter the following values for the new index:
Name Value name intrprtrindx1 desc Speed up searches using InterpreterSpecialty field unique true -
Right-click index in the Element column, and choose .
This index column is the first of three to add to the index.
-
Enter the following values for the new
indexcol:Name Value name InterpreterSpecialty keyposition 1 - Right-click index in the Element column, and choose .
-
Enter the following values for the new
indexcol:Name Value name Retired keyposition 2 - Right-click index in the Element column, and choose .
-
Enter the following values for the new
indexcol:Name Value name Id keyposition 3 -
Regenerate the data dictionary to ensure that your changes are correct.
At a command prompt, navigate to the ContactManager installation folder and enter:
gwb genDataDictionary
What to do next
Add the new subtype to the ContactMapper class in ContactManager
