Skip to content

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

  1. If inWorkerID > 0, construct New ClaimContext(0, inWorkerID) and call ChangeContext().
  2. ChangeContext() follows the same downstream sequence as Set claim context and retrieve: OnContextChanged → GetClaimData →, if valid, OnCheckSecurity → OnRetrieve. OnCheckSecurity enforces BR-CLM-001 through BR-CLM-004.
  3. If inWorkerID <= 0, no action is taken (no context change, no message set).
  4. 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*.

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