Create an optimized inspection route batch job
You can create a batch job to generate the sequence of inspection route sheet items for each inspector, based on the start location, the end location, and the default route type in the inspector’s user profile. See Define location and type information for inspection routes for a description of the three fields.
The inspection route sheet items are the inspections scheduled for the next available day or the day after that, depending on when you run the batch job.
To create an optimized inspection route batch job
-
From the Administration menu, select System tools > Batch engine.
-
Select New.
-
Complete the following required fields:
Field Action Name Enter an intuitive name for the batch job. Description Enter a brief description of the batch job. Email Enter the email address where you want Civic Platform to send emails after job completion, regardless if the job is successful or not.
You can configure the email template named NOTICE_OF_BATCH_JOB_COMPLETED to customize the notification. For information about how to edit an email notification template, see Communication manager.
Job type Select System from this menu. Service category Select Optimize Inspection Route.
Note: This field displays after you select a job type . -
Select Submit.
-
Select the Job schedule tab.
-
Complete the following fields:
Field name Action Start time Determine the time of day at which the batch job begins running by selecting hour, minute, and am/pm from menus.
Note: If you set a batch job Schedule status to Active but do not specify a Start Time, an error message displays when you try to save the batch job.Schedule status Use this menu to turn a batch job on and off. Select Active to activate the batch job. Select On hold to deactivate the batch job and save its information. Start date Enter the date on which the batch job starts or select a date by selecting the data picker beside the field.
Note: If you set a batch job Schedule status to Active but do not specify a Start date, an error message displays when you try to save the batch job.Time out (seconds) Enter the number of seconds a batch job attempts to run before timing out. End date This field is active only if you select a value other than Once in the Frequency field. Enter the date on which the batch job stops running or select a date by selecting the data picker
beside the field.Frequency Select the frequency with which the batch job runs from this menu. The options are Once, Daily, Weekly, Monthly, or Yearly. PM generate (Required) This field enables you to specify how far in advance the batch job generates work orders.
Note: This field only displays if you selected PM schedule as the Service category during the creation of the batch job.Enter a number in the first field, then select Days, Weeks, Months, or Years from the menu in the second field.
Example: To generate work orders two weeks in advance of the PM Schedule batch job, enter 2 in the numeric field and select Weeks from the menu. Or, enter 15 in the numeric field and select Days from the menu. -
Select Save.