Add the new subtype to the ContactMapper class in ContactManager
To be able to send the new subtype to a Guidewire core application and receive updates for the subtype, you must add it to the ContactMappper class.
Before you begin
About this task
For more information on the ContactMappper class, see ContactMapper class.
Procedure
-
In Guidewire Studio™ for ContactManager, press Ctrl+N
and enter ContactMapper, and then double-click the
ab1000version of the class in the search results to open it in the Gosu editor. -
Press Ctrl+F and search for the following line of code:
fieldMapping(ABMedicalCareOrg#MedicalOrgSpecialty), -
After the line for ABMedicalCareOrg, add the following code for the new entity:
fieldMapping(ABInterpreter#InterpreterSpecialty),
Note: You do not have to put this fieldMapping method call in this exact location. It must be in the method with declaration override property get Mappings() : Set<PropertyMapping>. Additionally, it is useful to group it with the other method calls after the comment// Other ABContact subtypes. - If ContactManager is running, you must stop and restart it to pick up the data model change. Wait to restart the ContactManager application until you complete the step Restart both applications and test the new subtypes.
