Search and open a legal case¶
This workflow searches for a legal case, establishes claim context, applies confidential-claim security, and loads the legal case aggregate for downstream screens.
| Field | Value |
|---|---|
| Operation ID | OP-APP-001 |
| Trigger | User submits a search on frmCaseSearch |
| Libraries involved | SAIF.Application.Claim.Legal, SAIF.Application.Claim, SAIF.Business.Claim.Legal, SAIF.Business.View.Policy |
| Screens | frmCaseSearch |
| Inputs | Search mode and search criteria (claim number, case number, WCB number, or party name) |
| Outputs | Loaded clsLegalCase / clsLegalData for the selected case; established claim and policy context for downstream screens |
Steps¶
clsCaseSearchManagerrenders frmCaseSearch, validates the selected search mode, and requests search results — owned by SAIF.Application.Claim.Legal.- SAIF.Business.Claim.Legal executes the case-search retrieval path through
clsCaseSearchCriteria,clsCaseSearchResult, orclsFindCaseand returns matching cases. ClaimAppManagerestablishes claim context — owned by SAIF.Application.Claim:- Loads
ClaimDataand applies claim-level security (BR-APP-001). - On a confidential claim (
IsWorkerConflictorIsExposure) without the requiredLNConflict/LNExposureresource or override, access is denied and the search result is not opened. LegalManagerBasesets the current legal case, loadsclsLegalCase, and loads the legal header data objectclsLegalData— owned by SAIF.Application.Claim.Legal (LegalManagerBase.SetCurrentCase).OnCheckSecurity()/OnRetrieve()applies the default-restricted-access rule (BR-APP-002): the screen defaults to view-only or no-access until the role check explicitly grants an update role.- SAIF.Business.View.Policy supplies policy and agency context for downstream summary, request, and case-cost screens once the case is opened.
Process flow¶
The following diagram visualizes this workflow across components.
flowchart TD
Start([User submits case search]) --> S1[clsCaseSearchManager validates search mode]
S1 --> S2[SAIF.Business.Claim.Legal executes case-search retrieval]
S2 --> D{Claim confidential flags set?}
D -->|Yes, no resource/override| EndErr([Access denied - confidential claim])
D -->|No, or resource granted| S3[ClaimAppManager establishes claim context]
S3 --> S4[LegalManagerBase loads clsLegalCase and clsLegalData]
S4 --> S5[SAIF.Business.View.Policy supplies policy context]
S5 --> EndOk([Case opened for downstream screens])
Failure and edge-case behavior¶
- Confidential claim access denial: if the underlying claim is flagged
IsWorkerConflictorIsExposureand the user lacks the applicable AD resource and any security override fails, the case does not open and a confidential-access error message is displayed (BR-APP-001). - No matching search results:
clsCaseSearchResultreturns an empty result set and the screen remains on the search form.
Related documentation¶
Sources¶
SAIF.Application.Claim.Legal/LegalNet/clsCaseSearchManager.vbSAIF.Application.Claim.Legal/LegalManagerBase.vbSAIF.Application.Claim/ClaimAppManager.vb