Retrieve a correspondence item¶
Load a correspondence or endorsement by sequence number or by policy-period/code key.
| Field | Value |
|---|---|
| Operation ID | OP-002 |
| Trigger | Caller invokes GetCorrespondence, GetInformationPage, or GetEndorsement. |
| Inputs | Sequence number, or policy number + policy-period effective date + correspondence code. |
| Outputs | A populated clsCorrespondence or clsEndorsement. |
| Primary components | clsCorrespondence.BeforeRetrieve, clsCorrespondence.AfterRetrieve, clsEndorsement.BeforeRetrieve |
| Entry point | Business\SAIF.Business.Policy.Correspondence\clsCorrespondence.vb; Business\SAIF.Business.Policy.Correspondence\clsEndorsement.vb |
Steps¶
- Build the appropriate criteria object and send it through the framework retrieve path† so the data portal can issue a single-row query (BR-008).
clsCorrespondence.BeforeRetrievebinds either:CorrespondenceSequenceNumberor the policy/period/code tuple, producing either SQL-005 or SQL-006 (BR-008).GetInformationPageis the same path, but it hard-codesP401as the correspondence code (BR-009).- Endorsement retrieval swaps in the endorsement-specific criteria, which adds the endorsement filter before binding
:EndorsementSequenceNumber(SQL-013, BR-001). AfterRetrievereads the first returned row, fills the business object fromENDORSEMENTand correlatedOUTPUT_LOG, then marks the object old (ENDORSEMENT, OUTPUT_LOG).
Process flow¶
The following diagram summarizes the control flow for this operation.
flowchart TD
Start([Lookup request]) --> Criteria[Build criteria] --> Query[Run retrieve SQL] --> Fill[Fill business object] --> Return([Return loaded object])
Failure and edge-case behavior¶
- Validation and framework state errors surface through the BOF error collection unless the called dependency throws directly.
- Database-dependent operations rely on the caller-supplied data portal context and Oracle connectivity.
- Imaging reconciliation and stored-procedure wrappers defer cross-system behavior to their external collaborators.
Related documentation¶
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified. Statements marked with † are derived from dependency library documentation via the Legends CLI.
Sources¶
Business\SAIF.Business.Policy.Correspondence\clsCorrespondence.vbBusiness\SAIF.Business.Policy.Correspondence\clsEndorsement.vb