Availability in scripts

Availability scripts return true/false values. They are written in Gosu and therefore can capture complex logic. However, they are more resource intensive than availability tables.

Important: Extensive use of availability scripts or the use of complicated scripts can have a detrimental effect on the system performance as PolicyCenter recalculates availability.

PolicyCenter evaluates an availability script only when the availability table determines that a pattern is available. Therefore, an availability script can only reduce the number of available patterns.

For an example of an availability script in the base configuration, navigate to Policy Lines > Commercial Auto Line > Coverages > PIP - Arkansas > Availability. The availability script is:

return BAJurisdiction.BusinessAutoLine.GaragingJurisdictions.contains(BAJurisdiction)
Note: Because the line was previously known as business auto, some of is artifacts continue to use the abbreviation BA, while others have been updated to CA.