Accessing product model pattern through generated type

Gosu expressions now access many product model objects using CodeIdentifier instead of PublicID. As a developer who writes code accessing product model objects, Studio makes this change largely transparent to you. Usually your code references a product model object through its generated type. This code does not require any change.

For example:

  • The Liability - Bodily Injury and Property Damage coverage existed prior to the addition of the CodeIdentifier attribute. Your code accessing this coverage through the generated type PALiabilityCov does not need to change.
    // Create line-level coverages
    _liabilityCov = paLine.PALiabilityCov
    _medPaymentCov = paLine.PAMedPayCov

    In prior releases, paLine.PALiabilityCov accessed PublicID. In this release, paLine.PALiabilityCov accesses CodeIdentifier. The change is transparent because the upgrade trigger set the CodeIdentifier to the same value as PublicID.

  • You add a new coverage, Glass, in PolicyCenter 9.0 with a CodeIdentifier of HOPGlass. Its PublicID is automatically generated and set to a value such as x743oqa128. Just as before, you can access the coverage through the generated type HOPGlass:
    // Create line-level coverages
    _glassCov = hopLine.HOPGlass