Scheduling the daily batch

You can use a daily batch to control automated benefit assessment, assignment, recalculation, and closure. To set up the batch schedule:

  1. Go to Setup > Custom Code > Apex Classes.
  2. Select Schedule Apex:

    Sage People displays the Schedule Apex page.

  3. Complete the fields as follows:
    FieldDescription

    Job Name

    The name you want to use for the job running the batch. The name appears in the list of Scheduled Jobs (Setup > Administration Setup > Monitoring > Scheduled Jobs). Use a name that is easily identified, such as Benefits Daily Batch.

    Apex Class

    The Apex Class controlling the batch. Select Apex Class Lookup and select the class:

    BenefitSetDailyBatchSchedule

    Schedule Apex Execution

    The schedule that controls the timing of the regular batch run. For a daily batch:

    • Select Weekly Frequency.
    • Select all the days of the week you want the batch to run.
    • Select Start and End dates. You can set the end date for up to 5 years in the future.
    • Select a Preferred Start Time for the batch to run. Typically, choose a time before start of day so that benefits can be assessed, assigned, recalculated and closed. The exact start time may vary each day depending on other activity in the job queue.
  4. Select Save.

The job is scheduled and runs on the days you chose.

To change the details of the daily batch job, such as when it runs, delete the original job and set it up again:

  1. Go to Setup > Environment > Jobs > Scheduled Jobs

    Sage People displays the All Scheduled Jobs page.

  2. In the Action column for the job, select Del:

    You are asked to confirm.

  3. Select OK.

  4. Repeat the steps described at the start of this section to set up a job with the new details.

  5. To monitor the status of the daily batch job:

  6. Go to Setup > Administration Setup > Monitoring > Apex Jobs