Creating 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 Inspections 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. For example, if you run the batch job between September 15, 10:00 pm and September 16, 10:00 pm, the batch job generates the sequence of inspections scheduled between September 16,10:00 pm and September 17, 10:00 pm. If you run the batch job between September 16, 10:00 pm and September 17, 10:00 pm, the batch job generates the sequence of the inspections scheduled between September 17, 10:00 pm and September 18, 10:00 pm.
You can run this batch job at the end of the prior day for the next day’s jobs, or at the middle of the night. Supervisors can also manipulate the order of the route sheet items after the automatic generation.
To create an Optimized Inspection Route batch job
Access the Batch Jobs portlet (Accessing the Batch Jobs Portlet).
Click New.
Civic Platform displays the New Batch Job portlet.
Complete the following required fields:
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, whether the job is successful or not. You can configure the email template named NOTICE_OF_BATCH_JOB_COMPLETED to customize the notification content. Job Server Select the server for running the batch job. Job Type Select System job type from this drop‑down menu. Service Category After you select System job type from the Job Type drop‑down menu, the Service Category drop‑down menu displays. Select the batch job you want to create, in this example, Optimize Inspection Route. Click Submit.
Civic Platform creates the batch job and then displays the Batch Job Detail portlet.
Specify the job schedule to run the batch job by completing the following steps:
Click the Job Schedule tab.
Define the batch job schedule. Complete the fields as described in Table 1.
Click Save.