Overview of graph-based policy retrieval
Copying a policy from the PAS to ClaimCenter involves two steps: policy search and policy retrieval. As of this release, Cloud API does not provide any functionality to assist in policy search. This action must still be executed using other technologies. Cloud API does provide functionality that can assist in policy retrieval. This functionality is implemented through a series of plugins.
Plugin architecture that makes no use of graph-based retrieval
For an instance of ClaimCenter that does not use graph-based policy retrieval, there is one relevant plugin.
IPolicySearchAdapter plugin
-
The plugin class must be implemented by the insurer.
-
The plugin implements the following methods:
-
searchPolicies-
This method receives a set of search criteria and returns Policy Summaries for all PAS policies meeting the criteria.
-
-
retrievePolicyFromPolicySummary-
This method receives a PolicySummary and returns a Policy consisting of information from the PAS policy corresponding to the PolicySummary.
-
-
retrievePolicyFromPolicyandretrievePolicySummaryFromPolicy-
These methods are used for PolicyRefresh. For more information, see Graph-based policy refresh.
-
-
This is illustrated in the following diagram.

Plugin architecture that makes use of graph-based retrieval
ICloudRetrievePolicy plugin
-
The plugin class is implemented by the insurer.
-
The plugin implements the following methods:
-
shouldUseGraphRetrieveForPolicyType-
This method determines whether the policy is retrieved using a graph or a traditional method.
-
-
getPolicyGraph-
This method takes a policy summary, retrieves the relevant policy information from the PAS, and then converts it into JSON that adheres to the Cloud API Policy graph schema.
-
-
convertPolicyToSummary- This method is used for policy refresh. For more information, see Graph-based policy refresh.
-
IFallbackPolicySearchPlugin plugin
-
The plugin class is implemented by the insurer. (It implements the same interface as the
IPolicySearchAdapterplugin.) -
The plugin implements the following methods:
-
searchPolicies-
This method receives a set of search criteria and returns Policy Summaries for all PAS policies meeting the criteria.
-
-
retrievePolicyFromPolicySummary-
For policies retrieved from using a non-graph approach, this method receives a PolicySummary and returns a Policy consisting of information from the PAS policy corresponding to the PolicySummary.
-
-
retrievePolicyFromPolicyandretrievePolicySummaryFromPolicy- These methods are used for PolicyRefresh. For more information, see Graph-based policy refresh.
-
IPolicySearchAdapter plugin(Note that this plugin is relevant for both instances that never use graph retrieval and for instances that make at least some use of graph retrieval.)
-
The plugin class is implemented by an internal Java class provided by Guidewire.
-
The plugin implements the following methods:
-
searchPolicies-
This method calls
IFallbackPolicySearchPlugin.searchPolicies
-
-
retrievePolicyFromPolicySummary-
This method calls
ICloudRetrievePolicyPlugin.shouldUseGraphRetrieveForPolicyType. -
If it returns true, then it calls
ICloudRetrievePolicyPlugin.getPolicyGraph. -
If it returns false, then it calls
IFallbackPolicySearchPlugin.retrievePolicyFromPolicySummary
-
-
retrievePolicyFromPolicyandretrievePolicySummaryFromPolicy-
These methods are used for PolicyRefresh. For more information, see Graph-based policy refresh.
-
-
The following sections illustrate how the search and retrieval operations are executed.
Policy search
The following diagram illustrates how ClaimCenter searches for policies.
-
ClaimCenter calls
IPolicySearchAdapter.searchPolicies. -
This method calls
IFallbackPolicySearchPlugin.searchPolicies. -
This method sends policy search criteria to the PAS and returns a set of PolicySummaries matching the criteria. This is the same for both the traditional and graph-based approaches.

Policy retrieval
The following diagram illustrates how ClaimCenter retrieves policies.
-
ClaimCenter calls
IPolicySearchAdapter.retrievePolicyFromPolicySummary. -
This method calls
ICloudRetrievePolicyPlugin.shouldUseGraphRetrieveForPolicyType. This method returns a Boolean value. -
If it returns true, ClaimCenter calls
ICloudRetrievePolicyPluin.getPolicyGraph. This method uses the policy summary to retrieve information about the policy from the PAS and transform it into JSON that adheres to the Policy graph schema. This is then saved to the database. -
If it returns false, ClaimCenter calls
IFallbackPolicySearchPlugin.retrievePolicyFromPolicySummary. This non-graph-based method uses the policy summary to retrieve information about the policy from the PAS and transform it into a Policy object. This is then saved to the database.
