psdi.app.measurement

Class MeasurePointWoGenCronTask

  • All Implemented Interfaces:
    CronTask


    public class MeasurePointWoGenCronTask
    extends SimpleCronTask
    This is a Cron task that generates work orders from MeasurePoints. The CronTask checks 'AUTOMPWOGEN' flag in MAXVARS table for all the sites in the system. It generates the work orders only if the 'AUTOMPWOGEN' flag is set to 'Yes' for a given SITE.
    For each of the MeasurePoints in the set, generateWork() will be called passing "MPWOGENUSECRITERIA" as a parameter. After the work orders are generated, the results are e-mailed to the address specified by the MaxVar 'MPWOGENEMAIL'.