Add a new ABContact subtype to ContactManager

Part of adding a vendor contact subtype is extending the ABContact entity in ContactManager.

Before you begin

Complete Add the new contact to the shared contacts detail view.

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

  1. Start Guidewire Studio™ for ContactManager. At a command prompt, navigate to the ContactManager installation folder and enter the following command:
    gwb studio
  2. In the Project window open in Project view, navigate to configuration > config > Extensions > Entity.
  3. Right-click Entity and choose New > Entity.
  4. In the Entity field, type the following name: ABInterpreter
  5. Click the Entity Type drop-down list and choose subtype.
  6. In the Desc field, type the following description: Interpreter
  7. Click the Supertype search button and choose ABPersonVendor from the drop-down list.
  8. Click OK.
  9. In the Entity editor for the new entity, click subtype at the top of the Element hierarchy.
  10. For Display name , enter Interpreter.
  11. Click the drop-down list next to and choose column.
  12. Enter the following values for the new column:
    Name Value
    name InterpreterSpecialty
    type varchar
    nullok false
    desc Interpreter's language specialties
  13. Click the drop-down list next to and choose columnParam.
  14. Enter the following values to specify the size of this varchar column:
    Name Value
    name size
    value 30
  15. Click subtype at the top of the Element hierarchy.
  16. Click the drop-down list next to and choose index.
  17. Enter the following values for the new index:
    Name Value
    name intrprtrindx1
    desc Speed up searches using InterpreterSpecialty field
    unique true
  18. Right-click index in the Element column, and choose Add new > indexcol.

    This index column is the first of three to add to the index.

  19. Enter the following values for the new indexcol:
    Name Value
    name InterpreterSpecialty
    keyposition 1
  20. Right-click index in the Element column, and choose Add new > indexcol.
  21. Enter the following values for the new indexcol:
    Name Value
    name Retired
    keyposition 2
  22. Right-click index in the Element column, and choose Add new > indexcol.
  23. Enter the following values for the new indexcol:
    Name Value
    name Id
    keyposition 3
  24. 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