@Override public boolean isRestart() { if (getStepExecution() != null && getStepExecution().getStatus() == BatchStatus.ABANDONED) { /* * This is assumed to be the last step execution and it was marked * abandoned, so we are in a restart of a stopped step. */ // TODO: mark the step execution in some more definitive way? return true; } return execution.getStepExecutions().isEmpty(); }
public boolean isRestart() { if (getStepExecution() != null && getStepExecution().getStatus() == BatchStatus.ABANDONED) { /* * This is assumed to be the last step execution and it was marked * abandoned, so we are in a restart of a stopped step. */ // TODO: mark the step execution in some more definitive way? return true; } return execution.getStepExecutions().isEmpty(); }
@Override public boolean isRestart() { if (getStepExecution() != null && getStepExecution().getStatus() == BatchStatus.ABANDONED) { /* * This is assumed to be the last step execution and it was marked * abandoned, so we are in a restart of a stopped step. */ // TODO: mark the step execution in some more definitive way? return true; } return execution.getStepExecutions().isEmpty(); }
@Override public boolean isRestart() { if (getStepExecution() != null && getStepExecution().getStatus() == BatchStatus.ABANDONED) { /* * This is assumed to be the last step execution and it was marked * abandoned, so we are in a restart of a stopped step. */ // TODO: mark the step execution in some more definitive way? return true; } return execution.getStepExecutions().isEmpty(); }
@Override public boolean isRestart() { if (getStepExecution() != null && getStepExecution().getStatus() == BatchStatus.ABANDONED) { /* * This is assumed to be the last step execution and it was marked * abandoned, so we are in a restart of a stopped step. */ // TODO: mark the step execution in some more definitive way? return true; } return execution.getStepExecutions().isEmpty(); }