Load the legacy task code table¶
Loads the entire LEGACY_TASK_CODE reference table via an inline, unfiltered SELECT *.
| Field | Value |
|---|---|
| Operation ID | OP-16 |
| Trigger | Factory call to GetLegacyTaskCodeCollection |
| Inputs | none |
| Outputs | Populated clsLegacyTaskCodeCollection |
| Primary components | clsLegacyTaskCodeCollection.GetLegacyTaskCodeCollection, BeforeRetrieve, AfterRetrieve |
| Entry point | SAIF.Business.Tasks.Claim/clsLegacyTaskCodeCollection.vb |
Steps¶
- Factory builds a
Criteria(dpi)and callsdpi.DataAccessLayer.RetrieveObject(criteria). BeforeRetrievecreates the data request and assignsMyCriteria.RetrieveSQL(SQL-002, LEGACY_TASK_CODE — read-only per BR-LTC-01).AfterRetrievecasts the result toIDataReaderand, for each row, creates aclsLegacyTaskCode, callsLoad(whichFillsCreate_Date,Create_User,Date_Days_Num,Legacy_Task_Code,Notepad_Flag,Task_Category_Code,Text_Days_Num,Task_Text,Update_Date,Update_User,Use_Rundate_Flag, builds aCriteria, andMarkOld()s the row), then adds it to the list.
Process flow¶
flowchart TD
Start(["GetLegacyTaskCodeCollection<br>called"]) --> S1["Build Criteria,<br>RetrieveObject"]
S1 --> S2["BeforeRetrieve assigns<br>RetrieveSQL"]
S2 --> S3["Execute SELECT * FROM<br>legacy_task_code"]
S3 --> Loop{For each row}
Loop --> S4["Create clsLegacyTaskCode,<br>Load/Fill, MarkOld"]
S4 --> Loop
Loop -->|Done| EndOk([Populated collection])
Failure and edge-case behavior¶
- No branches or error handling; the collection is read-only — all write SQL properties throw
ApplicationException(clsConstants.Messages.InvalidSQLProperty)(BR-LTC-01).
Related documentation¶
Sources¶
- SAIF.Business.Tasks.Claim/clsLegacyTaskCodeCollection.vb
- SAIF.Business.Tasks.Claim/clsLegacyTaskCode.vb