Loading
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Batch Framework Initialization

          Batch Framework Initialization

          The Vlocity batch framework launches the jobs that are defined in the Vlocity Scheduled Job custom object. To start the Vlocity batch framework, you must execute Apex code, which creates an instance of the framework and invokes its start method.

          VlocityBatchFramework batchFramework = new VlocityBatchFramework();
          batchFramework.startBatchScheduler('<frequency>');

          These commands create a CronTrigger (scheduled job) with the name VlocityScheduledJob.

          The Frequency parameter specifies how often the batch framework checks for jobs to launch. To ensure that jobs are executed on the desired schedule, specify a frequency greater than or equal to that of the highest-frequency job. For example, if you have a job that is scheduled to run hourly, specify Hourly or 15 Minutes for the batch framework frequency. Note that the timing of job execution is controlled entirely by the batch framework, and jobs might not be executed at precise intervals.

          VlocityBatchFramework batchFramework = new VlocityBatchFramework();
          batchFramework.startBatchScheduler('15 Minutes');
           
          Loading
          Salesforce Help | Article