use of cz.mzk.recordmanager.server.facade.exception.JobExecutionFailure in project RecordManager2 by moravianlibrary.
the class ZakonyProLidiFacadeImpl method runZakonyProLidiFulltextJob.
@Override
public void runZakonyProLidiFulltextJob() {
Map<String, JobParameter> parameters = new HashMap<>();
parameters.put(Constants.JOB_PARAM_CONF_ID, new JobParameter(Constants.IMPORT_CONF_ID_ZAKONY));
parameters.put(Constants.JOB_PARAM_REPEAT, new JobParameter(Constants.JOB_PARAM_ONE_VALUE));
JobParameters params = new JobParameters(parameters);
JobExecution exec = jobExecutor.execute(Constants.JOB_ID_FULLTEXT_ZAKONYPROLIDI, params);
if (!ExitStatus.COMPLETED.equals(exec.getExitStatus())) {
throw new JobExecutionFailure("ZakonyProLidi fulltext failed", exec);
}
}
Aggregations