Accounting API Developer's Reference

c2g.DeleteOldExportDocumentsBackgroundWorker

global with sharing class DeleteOldExportDocumentsBackgroundWorker implements Schedulable

Schedulable job which cleans up Documents automatically created by the FFA system for tasks such as exporting an Action View to Excel.

Methods

DeleteOldExportDocumentsBackgroundWorker

global DeleteOldExportDocumentsBackgroundWorker(Integer gracePeriodMinutes, boolean runOnce)

The constructor for this schedulable.

Input Parameters

Name Type Description
gracePeriodMinutes Integer The number of minutes old a document must be when this task runs for it to be deleted.
runOnce boolean Whether this job should execute a single time, rather than recurring

execute

global void execute(SchedulableContext sc)

Executes the scheduled Apex job.

Input Parameters

Name Type Description
sc SchedulableContext Contains the job ID.