Claim search from PolicyCenter
PolicyCenter calls the IClaimSearchPlugin plugin to search for claims against a policy. You implement this plugin interface to use PolicyCenter with an existing claim management system.
PolicyCenter includes a claim search plugin implementation that communicates with Guidewire ClaimCenter and a demonstration implementation that does not call out to anything. You can provide another implementation of this plugin interface to use PolicyCenter with a different claim management system.
This plugin provides the method searchForClaims. The method accepts an argument of type ClaimSearchCriteria, which contains all the claim properties for which a PolicyCenter user is searching. The argument includes properties such as those listed below.
Account- the accountContact- the contactDateCriteria- the date criteriaPolicy- the policy entity (check for important properties)PolicyNumber- the policy numberPolicyNumbers- the array of policy numbers
For more details on these objects, see the GosuDoc, the Java API Reference, and the Data Dictionary .
Your plugin must look up the claims for the dates in the DateCriteria object.
This method returns a ClaimSet object that encapsulates
a list of zero, one, or more claims. Create your array of claims and
store the array in the claim set property Claims. You can see the
Data Dictionary to determine the
required properties for claims.
There is a built-in implementation class, GWClaimSearchPlugin, that calls out to ClaimCenter. The following searchForClaims method of that implementation shows how to structure your code for claim search.
override function searchForClaims(claimSearchCriteria : IClaimSearchCriteria) : ClaimSet {
var claimResult = getClaimsFromExternalSystem(claimSearchCriteria.SearchSpecs)
if (claimResult == null or claimResult.size() == 0) {
throw new NoResultsClaimSearchException()
}
var result : ClaimSet
gw.transaction.Transaction.runWithNewBundle(\ bundle -> {
result = new ClaimSet(bundle)
for (pcClaim in claimResult) {
var claim = addClaimToClaimSet(pcClaim, result)
mapClaimToPeriod(claim, pcClaim.PolicyNumber)
}
var claimFilter = new ClaimPolicyPeriodFilterSet(result.Claims)
result.setClaimsFilter(claimFilter)
})
return result
}
Your implementation of this plugin must call out to your claim system and generate a new claim set and a series of new claims. Populate all the required properties in the data model for the Claim and Exposure entities. Refer to the Data Dictionary for details.
