Adding a new value comparator
In an underwriting rule, use the Value Comparator field to define how to compare the issue value. You can specify:
- If the value of an issue is within the authority granted to a user
- If the value of an issue is within the associated value of the approval
This comparator also specifies whether the value of an approval is within the authority granted to a user.
In the default configuration, the values are:
|
Value |
Code |
Description |
|---|---|---|
|
At least |
|
The issue value must be greater than or equal to the approval or authority grant
value. Select this value if the issue has an associated value where a smaller number
is associated with more risk, such as a deductible. Treat the value as a
|
|
At least (monetary) |
|
The issue value must be greater than or equal to the approval or authority grant
value. Select this value if the issue has an associated value where a smaller number
is associated with more risk, such as a deductible. Treat the value as a
|
|
At most |
|
The issue value must be less than or equal to the approval or authority grant
value. Select this value if the issue has an associated value where a larger number
is associated with more risk, such as total premiums or total insured value. Treat
the value as a |
|
At most (monetary) |
|
The issue value must be less than or equal to the approval or authority grant
value. Use this comparator for currency amounts. Select this value if the issue has
an associated value where a larger number is associated with more risk, such as
total premiums or total insured value. Treat the value as a
|
|
In set |
|
Treat the authority grant or approval value as a set of jurisdictions, and the issue value must be within that set. |
|
None |
|
Has no associated value. Use for issues that either exist or do not exist. |
The value comparator corresponds to the
UWIssueType.Comparator property.
The ValueComparator typelist defines these values. This typelist defines the comparators that issue values can use. You can add to the ValueComparator typelist. Each ValueComparator typekey has an associated UWIssueValueComparatorWrapper Gosu class that performs the comparison.
You may need to add a new value comparator if:
- The issue type needs to have an associated value because different PolicyCenter users have authority to approve specific values or ranges of values. For example, issues of a certain type have an associated class code. PolicyCenter users can be authorized to approve issues within certain class code ranges. There is no existing value comparator for this type. Therefore, you need to create a new value comparator for this type, and implement Gosu code that determines whether one class code or range contains another class code range.
- The existing comparators do not meet your needs because:
- There is no comparator for this kind of data – For example, you need a comparator that determines the manufacturer of a car based on the Vehicle Identification Number (VIN).
- There is no comparator that compares two values in the way that you require – For example, there is a state set comparator. However, you need a comparator which determines if a jurisdiction is in the northern, southern, eastern, or western part of the country.
Comparators are used to determined whether one value associated with some UWIssueType is within the bounds set by some other value. The comparator is used for two different comparisons:
- Ensuring that an approval value is within a grant value.
- Ensuring that an issue value is within an approval value.
Each new value comparator has a typekey in the ValueComparator typelist and a wrapper. There must be exactly one UWIssueValueComparatorWrapper for each ValueComparator and one ValueComparator for each UWIssueValueComparatorWrapper. When you instantiate the wrapper, you specify the associated ValueComparator. There is a two-way association between typekey and wrapper.
See also
