psdi.app.pm

Class PMForecastCostCronTask

  • All Implemented Interfaces:
    CronTask


    public class PMForecastCostCronTask
    extends SimpleCronTask
    This is a Cron task that generates PM Forecast Cost in the background. Cron task parameters are used as input to generate PM Forecast Cost. The parameters are siteid, orgid, whereclause, emailto, logfile. The "WhereClause" for getting the PMSet is read from cron task parameter 'whereclause' for a given site crontask parameter 'siteid' and given crontask parameter 'orgid'. For each of the PM in this set, storeResourceDataForForecast() will be called After the forecast cost is calculated, the results are e-mailed to the address specified by the crontask parameter 'emailto' and added to the logfile specified by the crontask parameter 'logfile'.