Add ContactManager search capability in ClaimCenter
Enable ClaimCenter to search for ContactManager contacts by InterpreterSpecialty.
Before you begin
About this task
In this step you set search criteria and search results in ClaimCenter that work with ContactManager. The topic uses the new Contact subtype named Interpreter that has one field, InterpreterSpecialty.
Procedure
-
To support search on the InterpreterSpecialty field, add it to the entity ContactSearchCriteria.etx.
- In Guidewire Studio for ContactManager, in the Project window, navigate to , and then double-click ContactSearchCriteria.etx.
- In the editor, at the top of the Element hierarchy, select nonPersistentEntity (extension).
-
Click the drop-down list next to
and choose column.
You use the column element because the data type is
varcharand is not a typekey. -
To the new column, add the following values that support searches for IntepreterSpecialty:
Name Value name InterpreterSpecialty type varchar nullok true desc Interpreter language specialties -
Click the drop-down list next to
and choose params.
-
Enter the following values to specify the size of this
varcharcolumn:Name Value name size value 30
-
Add an entry for InterpreterSpecialty to the Gosu class ContactSearchMapper so you can use this field when you search for a contact.
-
In Guidewire Studio for ClaimCenter, navigate in the Project window to and then to
gw.plugin.contact.ab1000. - Double-click ContactSearchMapper to open it in the editor.
-
Press
CTRL+Fand enter convertToABContactAPISearchCriteria to find this method. -
Find the following line of code:
searchCriteriaInfo.FirstNameKanji = searchCriteria.FirstNameKanji -
After that line, add the following code:
searchCriteriaInfo.InterpreterSpecialty = searchCriteria.InterpreterSpecialty
-
In Guidewire Studio for ClaimCenter, navigate in the Project window to and then to
-
Add an entry for InterpreterSpecialty to the Gosu class ContactSearchResultMapper so you can see this
field in the search results that come back from ContactManager.
-
In the same Project
window folder,
gw.plugin.contact.ab1000, double-click the class ContactSearchResultMapper to open it in the editor. -
Press
Ctrl+Fand enter populateContactFromSearchResult to find that method, and then in the method enter the following statement:if (contact typeis Interpreter) { contact.InterpreterSpecialty = searchResult.InterpreterSpecialty }
-
In the same Project
window folder,
