@Override public void beforeStep(StepExecution stepExecution) { LOG.info(">>>>>>>>>>>>>>>>>>>>>>>> beforeStep called."); try { contentService.load(); } catch (Exception e) { LOG.error("error: " + e.getMessage()); throw new RuntimeException(e); } }
@Override public ExitStatus afterStep(StepExecution stepExecution) { LOG.info("<<<<<<<<<<<<<<<<<<<<<<<<<< afterStep called."); try { contentService.save(); } catch (Exception e) { LOG.error("error: " + e.getMessage()); throw new RuntimeException(e); } LOG.info("============ ExitStatus.COMPLETED returned."); return ExitStatus.COMPLETED; }