Foundations Apex API Developer Reference

fferpcore.ScheduledJob

global abstract with sharing class ScheduledJob

A scheduled job to be displayed and configured in the associated Foundations UI.
It can be programmatically controlled using the Foundations global API.

Methods

getLabel

global abstract String getLabel()

Return Value

The user-friendly name for the scheduled job.

run

global abstract void run(fferpcore.ScheduledJob.RunContext context)

Perform the underlying operation that has been scheduled.
For example, start an Apex batch job.

fferpcore.ScheduledJob.RunContext

global with sharing class RunContext

Data concerning a single execution of a scheduled job.

Properties

Name Type Description
ScheduledJobId Id The ID of the associated Foundations scheduled job record. Responsible for storing the cron expression and implementation.
ScheduledJobRunId Id The ID of the associated Foundations scheduled job run record. Responsible for storing the state of a single execution.

Methods

RunContext

global RunContext()

© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.