Job Scheduler Configuration
Job Scheduler Configuration
To configure Job Scheduler we need to go to Breezz Setup → Scheduler Jobs → New or Simple Schedule Job from Dashboard.
After clicking New we can see this form to create configuration:
Fields Details:
- Name – This field denotes the name of the configuration.
- Description – An area designated for providing a detailed description of the functionality’s logic.
- Is Active – This determines the active status of a process. When inactive, processes are removed from the Scheduler Jobs queue.
- Feature Availability – Special metadata indicating when the functionality is active. Enter the name of the created Breezz Feature Toggle in this field.
- Job Type – Specifies the type of scheduled job. There are various values for this picklist:
- Custom – Requires the entry of the Scheduler Job Class Name of the class implementing the SchedulerJob interface, defining the execution logic.
- Custom - Batch – Requires the entry of the Scheduler Batch Class Name of the class extending the SchedulerBatch abstract class, defining the execution logic. When this option is selected, a SOQL query describing which records are to be handled must be entered in the Job Configuration field.
- Cleanup - Batch – Deletes significant data volumes by segmenting into manageable chunks. Requires a SOQL Query defining records to be deleted.
- Async Job Queue Processor – Activates asynchronous jobs at set time intervals.
- Steps Group – Configures a steps group to be executed at intervals for records retrieved from a definded SOQL Query, designed for smaller data sets.
- Steps Group - Batch – Similar to the above, meant for larger data sets.
- Step – Configures a step to be executed at intervals for records retrieved from a definded SOQL Query, designed for smaller data sets.
- Steps - Batch – Similar to the above, intended for larger data sets.
- Autolaunched Flow – Sets up a flow to run at intervals for records retrieved from a definded SOQL Query, suitable for smaller data sets.
- Autolaunched Flow - Batch – Similar to Autolaunched Flow, but designed for larger data sets.
- Create Record - Creates a new record based on criteria specified in Record Configuration section for the records retrieved from a defined SOQL Query.
- Create Record - Batch - Similar to Create Record but optimized for handling larger data volumes.
- Modify Context Record - Edits the context record based on criteria specified in Record Configuration section.
- Modify Context Record - Batch – Similar to Modify Context Record but designed for larger data sets.
- Anonymous Apex – Executes specified snippet of an Apex code in Anonymous Apex context.
- Text Field Cleanup – Cleans up specified text fields for records retrieved from a definded SOQL Query based on conditions specified in Record Configuration section.
- Text Field Cleanup - Batch – Similar to Text Field Cleanup but optimized for larger data volumes.
- Generate UUID – Generates a unique identifier (UUID) and stores in a field defined in Record Configuration section.
- Generate UUID - Batch – to Generate UUID but optimized for handling larger data volumes.
- Concatenate Fields – Merges specified fields into a single field based on conditions specified in Record Configuration section.
- Concatenate Fields - Batch – Similar to Concatenate Fields but optimized for larger data volumes.
- Execution Interval – Determines process execution interval.In this option, there are many different options to choose from-minute intervals, hourly intervals, at a specific time and day of the week along with a specific time.
- Record Level Security – Specifies in which context (Record Level Security) the DML operations contained in this steps group are to be performed. There are three options to choose with sharing, without sharing and inherited sharing.
Default Step Group Configuration
For example, if the user does not have access to the object on which the DML operation is performed, and inherited sharing is selected here, the operation will fail. To find out more about these three options, we recommend looking at the Salesforce documentation.
- Scheduler Job Class Name – Determines process class name. Class needs to implement the SchedulerJob interface.
- Scheduler Batch Class Name – Determines process class name. Class needs to extend the SchedulerBatch class.
- Flow – reference to autolaunched flow.
- Job Configuration – Additional scheduler job configuration. For clean-up job should contain a SOQL query that determines which records should be removed or Salesforce. For the Steps Group type, it contains a SOQL query which specifies which records are to be processed by the Steps Group. Job Configuration needs to contain SOQL query with SELECT and FROM clause but without LIMIT, OFFSET and GROUP BY statements.
- SOQL Query – Provide the SOQL query that will determines records which will be processed by the Flow