Reporting API Documentation

ffr.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.

Date

2015

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.
© Copyright 2009–2018 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.