Create a service state entity in ClaimCenter

Part of extending contacts with an array is to create the ClaimCenter entity that will be in the array.

Before you begin

Complete Add support for service states to the ContactManager user interface.

About this task

Create an entity that is the ClaimCenter counterpart of the ContactManager ContactServiceState entity.

Procedure

  1. If necessary, start Guidewire Studio™ for ClaimCenter.

    At a command prompt, navigate to the ClaimCenter installation folder and enter the following command:

    gwb studio
  2. In the Project window, navigate to configuration > config > Extensions > Entity.
  3. Right-click Entity and choose New > Entity.
  4. Enter the following file name: ContactServiceState
  5. Enter the following for Desc:

    Represents a state where the contact provides services

  6. Select Extendable and Final.
  7. Click OK.
  8. In the editor, click entity at the top of the Element hierarchy
  9. Click the drop-down list for and choose implementsEntity, and then choose Extractable from the drop-down list for the name value.
  10. Repeat the two previous steps, but use them to create implementsEntity elements named OverlapTable and AddressBookLinkable.
  11. Click entity at the top of the Element hierarchy.
  12. Click the drop-down list next to and choose foreignKey, and then enter the following values:
    Name Value
    name Contact
    fkentity Contact
    nullok false
    columnName ContactID
    desc Contact that this Service State row relates to
  13. Click entity at the top of the Element hierarchy.
  14. Click the drop-down list next to and choose typekey, and then enter the following values:
    Name Value
    name ServiceState
    nullok false
    typelist State
    desc State serviced by the contact
    loadable true (default value)
  15. Click entity at the top of the Element hierarchy, and then click the drop-down list next to and choose index.
  16. Enter the following values for the new index:
    Name Value
    name ind1
    unique true
  17. Right-click the ind1 index in the Element column, and choose Add new > indexcol.
    This index column is the first of three to add to the index.
  18. Enter the following values for the new indexcol:
    Name Value
    name ServiceState
    keyposition 1
  19. Right-click the ind1 index in the Element column, and choose Add new > indexcol.
  20. Enter the following values for the new indexcol:
    Name Value
    name Retired
    keyposition 2
  21. Right-click the ind1 index in the Element column, and choose Add new > indexcol.
  22. Enter the following values for the new indexcol:
    Name Value
    name ContactID
    keyposition 3
  23. Click entity at the top of the Element hierarchy.
  24. Click the drop-down list next to and choose index.
  25. Enter the following values for the new index:
    Name Value
    name ind2
    unique true
  26. Right-click the ind2 index in the Element column, and choose Add new > indexcol.
    This index column is the first of three to add to the index.
  27. Enter the following values for the new indexcol:
    Name Value
    name ContactID
    keyposition 1
  28. Right-click the ind2 index in the Element column, and choose Add new > indexcol.
  29. Enter the following values for the new indexcol:
    Name Value
    name Retired
    keyposition 2
  30. Right-click the ind2 index in the Element column, and choose Add new > indexcol.
  31. Enter the following values for the new indexcol:
    Name Value
    name ServiceState
    keyposition 3

What to do next

Add the new array to the Contact entity in ClaimCenter