Restart Studio and modify ContactManager

Before you begin

Complete the step Add a New Zealand suburb field to the user interface before you perform this step.

Procedure

  1. Close and restart Guidewire Studio™ to clear any errors you see reported in the classes that you changed.
  2. Modify the ContactMapper class in both PolicyCenter and ContactManager to pass the field to and from ContactManager:
    1. Navigate in the Project window to configuration > gsrc and then to gw/contactmapper/ab900/ContactMapper.
    2. Add a call to fieldMapping for Address#Suburb after the field mapping call for Address#CEDEXBureau:
      fieldMapping(Address#CEDEXBureau),
      fieldMapping(Address#Suburb),
  3. Make the following web service change in ContactManager only:
    1. If necessary, open Guidewire Studio for ContactManager.
    2. Navigate in the Project window to configuration > gsrc and then to gw/webservice/ab/ab900/abcontactapi/AddressInfo.
    3. Add the following variable definition to the list of variables at the top of the class:
      public var Suburb : String
    4. Add the following line of code to the method construct(address : Address):
      this.Suburb = address.Suburb
  4. Restart ContactManager.
  5. In Guidewire Studio for PolicyCenter, reload the ContactManager web service, as follows:
    1. In the Project window, navigate to configuration > gsrc > wsi > remote > ab > ab900 and double-click ab900.wsc to open it in the editor.
    2. In the Resources pane, click ${ab}/ws/gw/webservice/ab/ab900/abcontactapi/ABContactAPI?wsdl to select it.
    3. At the bottom of the Resources pane, click Fetch Updates.

What to do next

See also