Skip to main content

Purpose

The purpose of this Administrator Guide is to provide information about the Employee Specific Rate Calculator Batch Class. The content in this guide is optional, and may be utilised during implementation, or even after a project has gone live. The intended audience for this document is System Administrators.

Overview

The ‘Create Employee Specific Rate Calculator’ batch job is a Scheduled Job that processes all Assignments where the Create Rate Calculator checkbox is set to TRUE. It clones the Rate Calculator that has been applied to the Assignment field of the Rate Calculator Template, and inserts the new Employee Specific Rate Calculator into the Rate Calculator field on the Assignment. If the picklist Inherit Rate Calculator Values From is set to Assignment, the process updates the fields Award Classification, Award Level, Location, Industry, and Risk Classification on the Employee Specific Rate Calculator to the values from the related Assignment. Once the Scheduled Job is complete, the Create Rate Calculator field is unchecked to ensure the process does not run again. If a new Employee Specific Rate Calculator is required for an Assignment, this process can be run again by changing the Rate Calculator Template and selecting the Create Rate Calculator checkbox again.
Important Notes(Automation of fields)When a front office system (e.g. Bullhorn) or scheduling tool (e.g. Sirenum) is in use, automation will likely be required to populate the values for the Rate Calculator Template, Inherit Rate Calculator Values From, and Create Rate Calculator fields.

Scheduling the Batch Job

The following Scheduled Job processes all Assignments where the field ‘Create Rate Calculator’’ is True in 15 minute intervals. To run the script:
  1. Copy the block of script to be run.
  2. Select Setup > Developer Console .
  3. Debug > Open Execute Anonymous Window .
  4. Delete or comment out any code that is in the window.
  5. Paste in the copied script from below.
  6. Click the Execute button.

Verify the scripts are scheduled correctly

The Apex Jobs will now be Scheduled. To confirm the Apex Jobs are set up correctly: Go to Setup - Scheduled Jobs Alternatively, the batch job can be processed to run instantly using the following script:

Set Rate Calculator Template

To create an Employee Specific Rate Calculator, a Rate Calculator Template must be defined on the Assignment. Prior to ticking the checkbox Create Rate Calculator, a Rate Calculator Template and optionally Inherit Rate Calculator Values From picklist field should be set either manually or via a custom process. Failure to provide a Rate Calculator Template will cause the Batch Job to fail and it will continue to attempt in a continuous loop until a Template has been provided.
Important Notes(Inherit Rate Calculator Values From)If the picklist ‘Inherit Rate Calculator Values From’ is left blank, the process will by default inherit the values from the Rate Calculator Template.

Further Information