Schedule Apex jobs to generate job alerts

Immediately after you have successfully installed Candidate Experience portal, schedule the regular jobs to generate job alerts for candidates.

This is a one time task - when they have been scheduled the jobs run automatically and require no further manual action.

Candidates can select to receive job alerts for vacancies matching their defined criteria in any combination of:

  • Immediately a match is found. The associated alert email using the Candidate job alert immediate email template is generated automatically and does not need to be scheduled.

  • Daily

  • Weekly

  • Monthly

You need to set the schedules for Apex jobs to link job alerts with matching vacancies and to generate the alert emails for each frequency. There are four jobs to set up:

Job Purpose Apex Class

Link job alerts to matching vacancies

The job must run daily to ensure matching vacancies are identified and the details made available for the job alert emails generated by the other jobs. SchedulableBatchLinkVacancyJobAlerts
Daily job alerts Generates a daily job alert email using the Candidate job alert regular email template listing vacancies added to the Candidate Experience portal today matching candidate criteria. ScheduleJobAlertDaily
Weekly job alerts Generates a weekly job alert email using the Candidate job alert regular email template listing vacancies added to the Candidate Experience portal in the last week matching candidate criteria. ScheduleJobAlertWeekly
Monthly job alerts Generates a monthly job alert email using the Candidate job alert regular email template listing vacancies added to the Candidate Experience portal in the last month matching candidate criteria. ScheduleJobAlertMonthly

 

Repeat this procedure for each of the four jobs:

  1. Go to Setup > Custom Code > Apex Classes.

  2. On the Apex Classes page select Schedule Apex:

  3. On the Schedule Apex page complete the fields as follows:

    Field Job purpose What to enter
    Job Name

    Link job alerts to matching vacancies

    Link job alert to vacancies
    Daily job alerts Daily job alert
    Weekly job alerts Weekly job alert
    Monthly job alerts Monthly job alert
    Apex Class

    Link job alerts to matching vacancies

    SchedulableBatchLinkVacancyJobAlerts
    Daily job alerts ScheduleJobAlertDaily
    Weekly job alerts ScheduleJobAlertWeekly
    Monthly job alerts ScheduleJobAlertMonthly
    Frequency Link job alerts to matching vacancies

    Select Weekly, select all weekdays.

    Daily job alerts

    Select Weekly, select all weekdays.

    Weekly job alerts Select Weekly
    Monthly job alerts

    Select Monthly.

    Sage People displays options for monthly jobs. Select the day of the month you want the job to run.

    Start All The date you want to start running the job. The jobs generate no results until the Candidate Experience portal is live.
    End All The date after which you do not want the job to run.
    Preferred Start Time   Select the picklist and choose a time on the 24 hour clock for the job to run. Times are approximate; exact start time depends on other jobs in the queue at the time.
  4. Select Save.