Franchise Return Close (wf_returns_close_job)
Module Name |
wf_returns_close_job |
Description |
Franchise Return Close |
Functional Area |
Franchise Management |
Module Type |
Admin - Ad hoc |
Module Technology |
Background Processing |
Catalog ID |
N/A |
Wrapper Script |
b8dwrap.ksh |
Design Overview
This background job is composed of two-step processing. It will have a threading assignment and a business logic processing.
Thread assignment program will filter eligible records from franchise return header table based on if these conditions are met:
-
Franchise Returns is not in Input (I) or Closed (D) status.
-
All the transfers associated with the franchise return are in closed/deleted status.
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 update the records from franchise return header table to "D" (Closed) status. 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.