Set worker context¶
Public method on ClaimAppManager that establishes the current context from a worker ID.
| Field | Value |
|---|---|
| Operation ID | OP-CLM-002 |
| Trigger | Caller supplies inWorkerID As Decimal. |
| Inputs | inWorkerID As Decimal |
| Outputs | None (side effect) |
| Primary components | ClaimAppManager.SetWorkerContext |
| Entry point | SAIF.Application.Claim\ClaimAppManager.vb |
Steps¶
- If
inWorkerID > 0, constructNew ClaimContext(0, inWorkerID)and callChangeContext(). ChangeContext()follows the same downstream sequence as Set claim context and retrieve:OnContextChanged→GetClaimData→, if valid,OnCheckSecurity→OnRetrieve.OnCheckSecurityenforces BR-CLM-001 through BR-CLM-004.- If
inWorkerID <= 0, no action is taken (no context change, no message set). - This path has no explicit error handling*.
Process flow¶
flowchart TD
Start([SetWorkerContext called]) --> Guard{inWorkerID > 0?}
Guard -->|No| NoOp([No action taken])
Guard -->|Yes| Change[ChangeContext]
Change --> Downstream[OnContextChanged → OnCheckSecurity → OnRetrieve]
Failure and edge-case behavior¶
inWorkerID <= 0: silently no-ops, with no message set*.
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.
Sources¶
SAIF.Application.Claim\ClaimAppManager.vb