Policy Locations Risk Assessment work queue
|
Code |
|
|
Categories |
|
|
Implementation |
Work queue |
|
Schedule |
Not scheduled |
|
Class |
PolicyLocationsRiskAssessmentWorkQueue.gs |
The Policy Locations Risk Assessment work queue starts risk assessments for all policy locations associated with a policy period. This work queue sends to the user requesting risk assessment an activity indicating whether the risk assessment succeeded or failed.
In the base configuration, PolicyCenter calls this process if you select Update Risk Evaluations on the Risk Analysis screen in a commercial property policy transaction.
This process retrieves risk assessment results from the Guidewire Spotlight risk
assessment service for each location on a given PolicyPeriod and
creates LocationRiskAssessment objects. Because PolicyCenter sets
an effective date on each LocationRiskAssessment entity that it
creates, it is only possible to run this process on an unlocked
PolicyPeriod object.
If processing fails, the process does the following:
- It rolls back the entire transaction and does not persist any of the risk assessment results.
- It creates an activity and sends the activity to the list of configured user roles on the current job. You can configure the list of roles in the SpotlightNotificationActivityCreator class.
- It sends a notification activity to the requesting user, if the work item includes a reference to that user.
If processing succeeds, it does the following:
- It commits the transaction and persists the risk assessment results on the
PolicyPeriod. - It creates an activity and sends the activity to the list of configured user roles on the current job.
- It sends a notification activity to the requesting user, if the work item includes a reference to that user.
See also
