Legal case retrieval¶
This operation retrieves legal case header data for a claim — case number, attorney name, case status, and hearing date — from the Legal API.
| Field | Value |
|---|---|
| Operation ID | OP-VC-13 |
| Trigger | Caller constructs clsLegalData(dataPortalInfo, claimId, legalCaseSeqNum) |
| Inputs | Claim ID, legal case sequence number |
| Outputs | CaseNumber, AttorneyName, CaseStatus, HearingDate |
| Primary components | clsLegalData.New, clsLegalData.GetLegalHeader |
| Entry point | Business\SAIF.Business.View.Claim\clsLegalData.vb, Business\SAIF.Business.View.Claim\LegalApi\LegalData.vb |
Steps¶
- Construct the object.
clsLegalData.New(dataPortalInfo, claimId, legalCaseSeqNum)immediately callsGetLegalHeaderto populate itself. - Call the Legal API.
GetLegalHeadercalls the Legal API client (ApiClients.Item("LegalApi")) against routev1/info/header/{0}. - On failure: if the call throws,
resultis reset to a new, emptyLegalData()rather than propagating the exception. - Copy header fields. The constructor copies
CaseNumber,AttorneyName,CaseStatus, andHearingDatefrom the returnedLegalDataDTO onto the object's own properties.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Caller constructs clsLegalData]) --> Call[Call Legal API header route]
Call --> Ok{API call succeeds?}
Ok -->|No| Empty[Use empty LegalData]
Ok -->|Yes| Copy[Copy case number, attorney,<br>status, and hearing date]
Empty --> Done([Return populated clsLegalData])
Copy --> Done
Failure and edge-case behavior¶
- A failed Legal API call is swallowed and replaced with an empty
LegalDataobject, so construction always succeeds structurally even when the underlying legal case cannot be retrieved; callers cannot distinguish "no legal case" from "API call failed" without additional checks.*
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.
Sources¶
Business\SAIF.Business.View.Claim\clsLegalData.vbBusiness\SAIF.Business.View.Claim\LegalApi\LegalData.vb