As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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; }