Skip to content

clsLegalPersonManager maintenance

Legal person / firm maintenance.

Field Value
Operation ID OP-006
Trigger legal person / firm maintenance
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 clsLegalPersonManager
Entry point SAIF.Application.Claim.Legal\clsLegalPersonManager.vb

Steps

  1. Lazily load legal persons, legal person types, and other firms (inline SQL lookups for type/firm code lists).
  2. InsertNewPerson, InsertNewPersonType, InsertNewFirm add rows to the respective collections.
  3. DeletePerson is guarded by CanDeleteLegalPerson; DeletePersonType and DeleteFirm remove from their collections.
  4. OnWrite saves the 3 collections, then nulls m_LegalPersonCol to force a reload on next access.

  5. Primary rules: BR-040, BR-041

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"])

Sources

  • SAIF.Application.Claim.Legal\clsLegalPersonManager.vb