Search in sources :

Example 1 with PredictorJobParameters

use of org.hisp.dhis.scheduling.parameters.PredictorJobParameters in project dhis2-core by dhis2.

the class PredictorJob method execute.

@Override
public void execute(JobConfiguration jobConfiguration, JobProgress progress) {
    PredictorJobParameters predictorJobParameters = (PredictorJobParameters) jobConfiguration.getJobParameters();
    if (predictorJobParameters == null) {
        throw new IllegalStateException("No job parameters present in predictor job");
    }
    predictionService.predictJob(predictorJobParameters, null);
}
Also used : PredictorJobParameters(org.hisp.dhis.scheduling.parameters.PredictorJobParameters)

Aggregations

PredictorJobParameters (org.hisp.dhis.scheduling.parameters.PredictorJobParameters)1