@Override public String decide(StepExecution[] executions) throws Exception { for (StepExecution stepExecution : executions) { if ("customFailTest".equals(stepExecution.getStepName())) { return "CustomFail"; } } return "next"; }