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);
}
Aggregations