Risk type hierarchy is based on nested parent-child relationships:
- Parent (root is the parent)
Nested risk types
Nested risk types are based on a parent-child relationship, but in Lines, nested risk types create a non-inherited hierarchy, meaning the child is associated only with the parent and doesn’t inherit any data or properties from the parent.
Example: If Violations (child risk type) is nested under Driver (parent risk type), then adding violations to a quote will automatically associate them with the driver.
When risk types are in a parent-child relationship:
- All risk types have a parent, except for root.
- Multiple (sub) risk types can have the same parent and are considered the parent’s children.
- Child risk types can also be a parent to other risk types.
- The root can have a maximum of 10 levels of nested risk types below it.
Example: A line with three levels of nested risk types below the root.
+-- Policy (root) | +-- Office Complex | +-- Office Building | +-- Department | +-- Storage Building
With this structure, the premium can be set at the individual Department level to accumulate that premium for each Office Building, Office Complex, and the policy as a whole.
Ancestor rating information
Risk types have access to individual rating information (data fields, rate tables, and shared calculations) on any of their ancestors.
Example: A Fire Factor rate table on the Office Building that references the Distance to Fire Station field on the Office Complex.
Children in aggregate
Risk types can only look down at their children’s data in aggregate, such as a sum or average of data across all children.
Note: This restriction is in place because risk types can have multiple instances of their children, making it difficult for calculations to specify which instance they are retrieving data from.
- The Office Complex risk type could count the number of Office Building instances on the quote and provide a discount.
- The Policy risk type could receive a sum of the Property Damage premium for all instances of Office Complex on the quote.