Purge Aged Store Ship Schedule (activity_sched_purge_job)
Module Name |
activity_sched_purge_job |
Description |
Purge Aged Store Ship Schedule |
Functional Area |
Foundation Data |
Module Type |
Admin - Ad hoc |
Module Technology |
Background Processing |
Catalog ID |
|
Runtime Parameters |
Database connection |
Wrapper Script |
b8dwrap.ksh |
Design Overview
This background job is composed of two steps of processing. It will have a threading assignment and a business logic processing.
Thread assignment program will filter eligible records from location closed, company closed exceptions and company closed tables based on its purge criteria from system parameter settings. The Location Closed History Months parameter will determine how long a location and/or company with close date should remain on the associated tables. These records are chunked and Thread ID is assigned for each. They will be stored temporarily in a staging table.
The Business logic program will process all records from the staging table. Using bulk processing, this program will delete the records from location closed, company closed exceptions and company closed tables. It will free up and clean the staging table afterwards. There is a STOP ON NEXT feature in bulk processing (through a loop) where Administrators can stop this batch with a flip of this indicator.
Key Tables Affected
Table 3-5 Key Tables Affected
Table | Select | Insert | Update | Delete |
---|---|---|---|---|
SYSTEM_OPTIONS |
Yes |
No |
No |
No |
RMS_BATCH_STATUS |
Yes |
No |
No |
No |
B8D_PROCESS_CONFIG |
Yes |
No |
No |
No |
JOB_AUDIT_LOGS |
No |
Yes |
No |
No |
B8D_SCHED_PURGE_STG |
Yes |
Yes |
No |
Yes |
COMPANY_CLOSED_EXCEP |
No |
No |
No |
Yes |
COMPANY_CLOSED |
No |
No |
No |
Yes |
COMPANY_CLOSED_TL |
No |
No |
No |
Yes |
LOCATION_CLOSED |
No |
No |
No |
Yes |
LOCATION_CLOSED_TL |
No |
No |
No |
Yes |