SAIF.Business.Tasks.Claim operations and processes¶
This page is the operation catalog and cross-operation hub for this library. Each operation's detailed, step-by-step logic lives in its own page under operations/.
Operation catalog¶
| Operation | Intent | Trigger | Inputs | Outputs | Rules | Tables | SQL |
|---|---|---|---|---|---|---|---|
| Create a claim task | Instantiate a new claim task bound to a claim | Caller requests a new claim task | IDataPortalInfo, ClaimID, optional create user |
New dirty clsClaimTask |
BR-CT-01 | — | — |
| Bulk-raise claim tasks | Raise one or more workflow tasks against claims in bulk | Application process needs to raise tasks | Text, optional assignee/due date/priority/category | Tasks queued and persisted | BR-GEN-01, BR-GEN-02, BR-GEN-03, BR-GEN-04, BR-GEN-05, BR-CT-10 | — | — |
| Enrich a loaded claim task | Populate claim attributes and task context on load | Called by base Fill during retrieve/load |
Loaded task row | Populated claim attributes | — | — | SQL-001 |
| Load claim display/confidentiality fields | Fetch claim number, worker name, and confidentiality flags in bulk | List-path enrichment from OP-3 | ClaimID |
Nine InputOutput values |
BR-MY-01 | — | SQL-001 |
| Retrieve a filtered claim task list | Return claim tasks matching a filter | Application requests claim tasks | ClaimTaskCriteria |
Populated clsClaimTaskCollection |
BR-CT-11 | — | — |
| Retrieve and redact "my tasks" | Return a user's personal task list with confidentiality masking | User opens their personal task list | MyTaskCriteria |
Sorted, access-filtered task list | BR-MY-01, BR-MY-02, BR-MY-03 | — | SQL-001 |
| Assign the claim-grouped sort key | Compute the "my tasks" grouping/sort key | Called from Add and AfterRetrieve |
Task row, prior row state | sortBy value assigned |
BR-MY-02 | — | — |
| Change the claim on a task | Re-key a task to a different claim | Caller assigns a claim number | Claim number | Re-resolved claim data | BR-CT-01 | — | — |
| Assign or change the task owner | Validate and apply a task assignee | Assignment during creation or reassignment | MailID value | Validated assignee | BR-CT-03, BR-CT-06 | — | — |
| Save a claim / Coverage B task | Persist a task's pending changes | Caller calls Save/SaveChild |
Dirty task | Persisted task | — | — | — |
| Complete a task | Soft-delete a task as completed | MarkCompleted() call |
Task instance | Completed/DeleteFlag set |
BR-CT-07 | — | — |
| Copy a task to another user | Duplicate a task for a new assignee | Caller requests a copy | Target MailID | New task copy | BR-CT-03 | — | — |
| Create and validate a Coverage B task | Instantiate and validate a Coverage B task | Caller requests a new Coverage B task | IDataPortalInfo, ClaimID |
New validated clsCoverageBTask |
BR-CB-01, BR-CB-03, BR-CB-05 | — | — |
| Resolve a Coverage B category description | Look up a cached Coverage B category description | CategoryDescr access |
Category code | Description string | — | — | — |
| Add a claim number to a Coverage B filter | Translate a claim number to a claim ID filter | CoverageBTaskCriteria.AddClaimNum call |
Claim number | Claim ID added to filter | BR-CB-01 | — | — |
| Load the legacy task code table | Load all LEGACY_TASK_CODE reference rows |
Factory call | none | Populated clsLegacyTaskCodeCollection |
BR-LTC-01 | LEGACY_TASK_CODE | SQL-002 |
| Convert between priority codes and enum values | Map between TaskPriority enum and code strings |
Priority conversion during creation/display | Enum or code string | Mapped value | BR-GEN-06 | — | — |
Process flow diagram¶
The following diagram visualizes the primary claim-task creation and retrieval flow.
flowchart TD
Start([Caller requests task]) --> Create[Create claim task<br>OP-1]
Create --> Enrich[Enrich via clsClaimData<br>OP-3]
Retrieve([Caller requests list]) --> List[Retrieve filtered list<br>OP-5]
List --> ExtraFields[Load extra fields via<br>PK82284_CLAIM_TASK<br>OP-4]
MyTasks([User opens my tasks]) --> Redact[Retrieve and redact<br>OP-6]
Redact --> Sort[Assign sort key<br>OP-7]
Create --> Save[Save task<br>OP-10]
ExtraFields --> Save
Database interactions¶
The following table summarizes which operations read from or write to the database. Per-step SQL and table citations live in each operation's detail page under operations/.
| Operation | SQL | Tables | Type |
|---|---|---|---|
| Enrich a loaded claim task | SQL-001 | — | Read |
| Load claim display/confidentiality fields | SQL-001 | — | Read |
| Retrieve and redact "my tasks" | SQL-001 | — | Read |
| Load the legacy task code table | SQL-002 | LEGACY_TASK_CODE | Read |
Failure and edge-case behavior¶
- Bulk-raise (OP-2) aborts with
ApplicationException("ClaimID not specified")when no claim ID is supplied (BR-GEN-01). - Retrieve-and-redact (OP-6) throws
ApplicationExceptionfor an unsupported task source system (BR-MY-03). - Extra-fields load (OP-4) performs no row-count or error check; the failure mode when the claim does not exist is unknown.**
Related documentation¶
- Index
- Overview
- Architecture
- Dependencies
- Business rules
- Database tables
- SQL catalog
- Security and authorization
- API reference
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.Business.Tasks.Claim/clsClaimTask.vb
- SAIF.Business.Tasks.Claim/clsClaimTaskCollection.vb
- SAIF.Business.Tasks.Claim/clsClaimTaskGenerator.vb
- SAIF.Business.Tasks.Claim/clsCoverageBTask.vb
- SAIF.Business.Tasks.Claim/clsCoverageBTaskCollection.vb
- SAIF.Business.Tasks.Claim/clsLegacyTaskCodeCollection.vb
- SAIF.Business.Tasks.Claim/clsMyTaskCollection.vb