LegalManagerBase.OnContextChanged¶
Resolve legal case context.
| Field | Value |
|---|---|
| Operation ID | OP-001 |
| Trigger | resolve legal case context |
| Inputs | Current manager state, current claim/case context, and any workflow-specific parameters or collections. |
| Outputs | Updated collections, messages, or side effects specific to the operation. |
| Primary components | LegalManagerBase.OnContextChanged |
| Entry point | SAIF.Application.Claim.Legal\LegalManagerBase.vb |
Steps¶
- Clear the internal case list and current case.
- If
ContextSetis true: callMarkContextSet, thenclsFindCase.GetCases(DPI, ClaimData.ClaimNumber)to build the case list; select the first case. - Otherwise: treat
ContextNumber.ToUpperas a WCB or DCBS number and resolve the matching legal case. -
Call
SetClaimContext(CurrentCase.Claim.ClaimNumber)to align claim context, then re-select the case in the rebuilt list. -
Primary rules: BR-011
Failure and edge-case behavior¶
- Failures surface as manager messages or blocked workflow actions specific to the source operation.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Trigger]) --> S1[Load current state]
S1 --> S2[Apply operation rules]
S2 --> D{"Validation or security<br>issue?"}
D -->|Yes| EndErr(["Return message or block<br>action"])
D -->|No| EndOk(["Return updated workflow<br>state"])
Related documentation¶
- Index
- Operations and processes
- Business rules
- Security and authorization
- Database tables
- SQL catalog
- Procedures
- API reference
Sources¶
- SAIF.Application.Claim.Legal\LegalManagerBase.vb