/** * Adding execution expressions informations from a list of IBatch. * * @param conf * @param listBatchs */ private void addExecutionInformations( IBatchConfiguration conf, List<? extends IBatch> listBatchs) { if (isEmpty(listBatchs)) { return; } IBatch latestExecution = null; for (IBatch batch : listBatchs) { if (latestExecution == null || latestExecution.getStartDate().before(batch.getEndDate())) { latestExecution = batch; } } conf.setLastExecution(latestExecution.getStartDate()); }