Delete legal person¶
This operation removes a legal person (or other-firm) entry after delegating an in-use check to the business tier, blocking the deletion when the person is currently referenced.
| Field | Value |
|---|---|
| Operation ID | OP-LGL-013 |
| Trigger | clsLegalPersonManager.DeletePerson() invoked |
| Inputs | Person ID |
| Outputs | Person removed, or blocked with an error message |
| Primary components | clsLegalPersonManager.DeletePerson |
| Entry point | SAIF.Application.Claim.Legal\clsLegalPersonManager.vb |
Steps¶
DeletePerson()is invoked for a target person ID. Person-type context is populated from the cached LEGAL_PERSON_TYPE_CODE lookup (SQL-015).- Delegate the "in-use" check to
clsLegalPerson.CanDeleteLegalPerson.
Origin: delegates to
SAIF.Business.Claim.Legal(see operations and processes) — the internal step sequence ofclsLegalPerson.CanDeleteLegalPersonwas not traced in this run's Stage 1 analysis; this callout is inferred/best-effort.* 3. If the check fails (person is in use) (BR-LGL-016): - On failure: block the deletion with"Error: This person is in use, and cannot be deleted."4. Otherwise: delete the person.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([DeletePerson invoked]) --> Check[clsLegalPerson.CanDeleteLegalPerson]
Check --> InUse{In use?}
InUse -->|Yes| Blocked([Blocked: person in use])
InUse -->|No| Delete[Delete person]
Delete --> EndOk([Done])
Failure and edge-case behavior¶
- Person currently in use: deletion blocked with a user-facing error message; no exception is thrown to the caller.
Note: Statements marked with
*were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.
Related documentation¶
Sources¶
SAIF.Application.Claim.Legal\clsLegalPersonManager.vb