SOIL (State of Oregon Intercept) processing¶
SOIL (State of Oregon Intercept) processing is implemented by CollectionsRepository and is documented as OP-SDN-06 in the Stage 1 analysis.
| Field | Value |
|---|---|
| Operation ID | OP-SDN-06 |
| Trigger | See steps below |
| Primary components | CollectionsRepository |
Steps¶
GetWorkerIdForDebtors(): SQL-019.- Selects distinct worker ids from
legal_collection_debtorjoined tolegal_collection. - Filter: balance ≥ 0,
INCLUDE_ON_SOIL_FLAG='Y', no third party, and worker_id not null. - Rule: SDN-BR-011.
CreateSoilDebtorReferenceRecords(runDate, uniqueRunId):call WCIS_DBA.PK80011_LEGALCOL_SOIL.CREATE_REFERENCE_RECORDS, write, SQL-002.GetWorkerIdForSoilTrans(createDate): SQL-020.- Tables:
soil_debtor_reference,legal_collectionandlegal_collection_debtor. - Filter:
TRUNC(create_date) = :input. - Rule: SDN-BR-012.
CreateSoilAdjustmentRecords(runDate, uniqueRunId):call WCIS_DBA.PK80011_LEGALCOL_SOIL.CREATE_SOIL_TRANSACTIONS, write, SQL-003.
"SOIL" is inferred from the package name LEGALCOL_SOIL. The expansion is not verified; see Open questions.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start(["SOIL (State of Oregon Intercept) processing"]) --> S1["`CollectionsRepository`"]
S1 --> S2{"Rules satisfied?"}
S2 -->|Yes| EndOk([Result returned])
S2 -->|No| EndErr([Exception / empty result])
Related documentation¶
Sources¶
Data/SAIF.Data.NHibernate/Repositories/CollectionsRepository.cs