Determine maximum policy effective date¶
Determines the maximum (most recent) policy-period effective date for a policy by correlating each row against a self-joined subquery on POLICY_PERIOD.
| Field | Value |
|---|---|
| Operation ID | OP-POL-002 |
| Trigger | Caller reads the shared property PolicyInformation.MaxPolicyEffectiveDate(inDPI, inPolicyNumber) |
| Inputs | Data portal info (inDPI), policy number (inPolicyNumber) |
| Outputs | Date |
| Primary components | PolicyInformation.MaxPolicyEffectiveDate |
| Entry point | SAIF.Business.Policy\PolicyInformation.vb |
Steps¶
- Caller reads the shared property
PolicyInformation.MaxPolicyEffectiveDate(inDPI, inPolicyNumber). - A new
IPortalRequest/IDataRequestis built directly frominDPI.DataAccessLayer;SQLStatementis set toSQL.PolicyEffectiveDate(SQL-008, scalar, against POLICY_PERIOD). - Parameter
in_policy_numis bound;DAL.ProcessPortalRequest(PortalRequest)executes it. - Result is cast to
Dateand returned. - On failure/no match: no error handling for
Nothing/DBNullis present — would raise a cast exception.**
Process flow¶
flowchart TD
Start([MaxPolicyEffectiveDate read]) --> S1[Build IDataRequest with SQL-008]
S1 --> S2[Bind in_policy_num]
S2 --> S3[DAL.ProcessPortalRequest executes]
S3 --> D{Result is DBNull/Nothing?}
D -->|Yes| EndErr([Cast exception - unconfirmed behavior])
D -->|No| EndOk([Return Date])
Failure and edge-case behavior¶
- No null/
DBNullguard on the cast result — behavior when no matching row exists is unconfirmed.**
Related documentation¶
Note: Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources¶
SAIF.Business.Policy\PolicyInformation.vb