Rate query lookup plugin

PolicyCenter provides the IRateQueryLookupPlugin plugin interface so that you can customize the rate query fail-over logic in PolicyCenter. The default configuration of PolicyCenter uses a built-in implementation of the plugin, RateQueryWithFailoverLookupPlugin.gs. You can implement your own instance of this plugin by copying and customizing this plugin implementation.

To edit the plugin registry for IRateQueryLookupPlugin in Guidewire Studio, open IRateQueryLookupPlugin.gwp in configuration > config > Plugins > registry.

You can use the rate query lookup plugin to implement rate table lookup fail-over. For most implementations, fail-over is not necessary. When a rate table lookup fails, it usually indicates that the table has a missing value that needs to be added to the table. With fail-over when the lookup fails, the plugin provides an alternate return value.

You can use this plugin to lookup values in a fail-over rate book. Extend the rate book entity to point to the fail-over rate book. For example, if you change rate table codes between the old and new editions of the rate book, you can extend the rate book to include a mapping table. Use the mapping table to fail-over to alternate rate tables.

You can also use this plugin to implementing capping. Capping uses the current renewal policy data and uses the prior policy period’s rate book to determine the rate factor, or capping basis. Tables in the old edition of the rate book may be missing values for the renewal policy. For example, the old rate table does not contain values for new or changed coverages. With the plugin, lookup can fail-over to the table in the new edition of the rate book.

Rate query lookup plugin implementation

In Studio, the built-in implementation of this plugin is the RateQueryWithFailoverLookupPlugin.gs class in the gw.plugin.rateflow package.

Rate query lookup plugin methods

The rate query lookup plugin must implement these methods.

Preempt Query with Fail-over

The shouldPreemptQueryWithFailover method returns true to signal using fail-over if lookup fails.

Process Single Factor Query Fail-over

The processSingleFactorQueryFailover method handles fail-over for a single factor rate table.

If you are not using cascaded lookup, pass the new book in a ThreadLocal variable. If you are using cascaded lookup, pass the PolicyPeriod in the ThreadLocal variable to lookup the rate book hierarchy using RateBook.selectRateBook.

Process Multiple Factor Query Fail-over

The processMultiFactorQueryFailover method handles fail-over for a rate table with multiple factors.

If you are not using cascaded lookup, pass the new book in a ThreadLocal variable. If you are using cascaded lookup, pass the PolicyPeriod in the ThreadLocal variable to lookup the rate book hierarchy using RateBook.selectRateBook.