--------------Original Comment History----------------------------
Comment from = jrperkinsjr on 2015-03-04 20:00:34 +0000
For JobExecution.getStartTime() 1 the date should only be set when the batch status has been set to STARTED. For JobExecution.getEndTime() 2 the date should only be set when the batch status is either COMPLETED, FAILED or STOPPED. The return type should clarify what value is returned if the batch status has not reached of the allowed states. JBatch returns null which seems like the most logical value to return.
Originally opened as bug 6790 by jrperkinsjr
--------------Original Comment History---------------------------- Comment from = jrperkinsjr on 2015-03-04 20:00:34 +0000
For JobExecution.getStartTime() 1 the date should only be set when the batch status has been set to STARTED. For JobExecution.getEndTime() 2 the date should only be set when the batch status is either COMPLETED, FAILED or STOPPED. The return type should clarify what value is returned if the batch status has not reached of the allowed states. JBatch returns null which seems like the most logical value to return.