DeleteOldRecordsInTable
- 03 Nov 2020
- 1 Minute to read
- Contributors
- Print
- DarkLight
DeleteOldRecordsInTable
- Updated on 03 Nov 2020
- 1 Minute to read
- Contributors
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback!
This util removes old records in the tables listed as parameters in the scheduled job. The scheduled job requires a property in SiteDef.xml called "old.db.record.limit" to define how many days a record can live before it is removed. The default value of 90 days is used if the property is not found.
Project
com.corzia.comflow.utils
List of methods
execute
The job checks any column of type CreateDate and ChangeDate to see which is the most recent and removes the record if it is older than the property "old.db.record.limit".
Argument | Scheduled job parameter "Param_db_#" where # is an index and the value is the name of the table. Example: Param_db_1 = CACORE.ApplicationErrorLog |
Returns | N/A |
Was this article helpful?