Add the new array to the ABContact entity

Part of extending contacts with an array is to extend the ABContact entity in ContactManager to enable it to use an array of service state entities.

Before you begin

Complete Create a service state entity in ContactManager.

About this task

The array has the triggersValidation attribute set to true to enable triggering of validation rules when an element of the array changes.

Procedure

  1. In Guidewire Studio™ for ContactManager, navigate in the Project window to configuration > config > Extensions > Entity, and then double-click ABContact.etx to open this file in the Entity editor.
  2. In the editor, click entity (extension) at the top of the Element hierarchy
  3. Click the drop-down list for and choose array, and then enter the following values:
    Name Value
    name ContactServiceArea
    arrayentity ContactServiceState
    arrayfield Contact
    desc Geographical area where the contact provides service
    triggersValidation true
  4. If necessary, stop ContactManager.
    Open a command prompt in the ContactManager installation folder and then enter the following command:
    gwb stopServer
  5. Regenerate the Data Dictionary to ensure that the data model updates are correct.
    At a command prompt, navigate to the ContactManager installation folder and enter:
    gwb genDataDictionary

What to do next

Map the entity and array extensions in ContactManager