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;
}
06-27-2014 09:23 AM
07-07-2014 07:32 AM
07-07-2014 03:33 PM
07-08-2014 11:56 AM
07-09-2014 05:37 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.