Worksheet Purge plugin

The WorksheetPurgePlugin plugin interface configures how PolicyCenter purges rating worksheets.

PolicyCenter includes a built-in implementation of this plugin interface. See PCWorksheetPurgePlugin in the gw.plugin.purge.impl package.

The buildWorksheetCandidatesQuery method builds the list of worksheet containers that meet the requirements for the Worksheet Purge batch process to purge.

In PCWorksheetPurgePlugin, the buildWorksheetCandidatesQuery method finds worksheet containers that have the CanPurge property set to true, and whose jobs were completed more than RatingWorksheetContainerAgeForPurging days ago. The RatingWorksheetContainerAgeForPurging parameter is defined in config.xml.

PolicyCenter calls the canPurgeWorksheetContainer method to determine if the rating worksheet can be purged. In the base implementation, this method just returns the value of the CanPurge flag on the WorksheetContainer. You can include additional logic in this method.