Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component
- public class CustomStepExecutionListener implements StepExecutionListener {
- @Value("#{jobExecutionContext['" + ExecutionContextConstants.JOB_EXPORT_STAGING_PROMOTION_START_DATE_END_DATE_GROUPINGS +"']}")
- List<PromotionStartDateEndDateGrouping> promotionStartDateEndDateGroupings;
- @Override
- public void beforeStep(StepExecution stepExecution) {
- System.err.println("StepExecutionListener - beforeStep");
- }
- @AfterStep
- public ExitStatus afterStep(StepExecution stepExecution) {
- System.err.println("StepExecutionListener - afterStep: " + promotionStartDateEndDateGroupings.size());
- return (!promotionStartDateEndDateGroupings.isEmpty() ? new ExitStatus("CONTINUE") : new ExitStatus("FINISHED"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement