Set up a Scheduled Task for Cleanup Scheduling

Explanation

This activity is used to set up a scheduled task for the clean up job associated with the Mobile Workforce Management integration.

This job will clear out old appointment requests and offers. So, that if a user for instance, forgets to decline or accept an appointment offer for work order then this work order is not locked for appointment booking sessions for other users. The value of the system parameter CLEANUP_WAIT_TIME will define when to do the clean up.

For each scheduled task, there are specific parameters that need to be defined before the task can be executed as a background job. The scheduled task for Cleanup will have the following parameters:

Parameter Description
Dataset ID The identity of the dataset for which the cleanup should be executed. Note, that '%' is also applicable.

Prerequisites

To perform this activity, the schedule method for Cleanup Scheduling must have been set up with the required security settings.

System Effects

As a result of this activity, the old appointment request and offers will be cleaned up by the background job at the specified time intervals.

Window

New Database Task Schedule

Related Window Descriptions

Create New Database Task Schedule
Scheduled Database Tasks

Procedure

  1. Open the New Database Task Schedule window and create a new record (F5).
  2. In the Task Name field, query for the task "Cleanup Scheduling". This will automatically set the Schedule Name.
  3. Change the Schedule Name if required.
  4. To define when the scheduled task should be performed, click one of the options under Schedule and enter the time in the Time field.
  5. Enter a valid Dataset ID using list of values under Parameters, or use '%'  for all datasets.
  6. Enter the language and start and stop dates under Advanced.
  7. To activate the scheduled task, select the Active check box.
  8. Save the record (F12).