05-05-2014 11:43 AM
public Object execute(CommandContext commandContext) {
if(this.jobId==null){
LOGGER.error("no job id given");
throw new IllegalArgumentException();
}
JobEntity job = Context
.getCommandContext()
.getJobEntityManager()
.findJobById(jobId);
job.setLockOwner(null);
Date date = Calendar.getInstance().getTime();
date.setTime(date.getTime()+TEN_MN_IN_MS);
job.setLockExpirationTime(date);
job.setDuedate(date);
if(LOGGER.isDebugEnabled()){
LOGGER.debug("Job "+jobId+" has been delayed to "+date.getTime());
}
if(exception != null) {
job.setExceptionMessage(exception.getMessage());
job.setExceptionStacktrace(getExceptionStacktrace());
}
return null;
}
05-05-2014 11:51 AM
05-06-2014 09:53 AM
05-06-2014 01:11 PM
05-08-2014 04:18 AM
05-12-2014 08:37 AM
05-14-2014 03:32 PM
05-15-2014 04:58 AM
05-22-2014 08:29 AM
05-27-2014 03:24 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.