public void setErrorDetails(String exception) { EnsureUtil.ensureNotNull("exception", exception); byte[] exceptionBytes = toByteArray(exception); ByteArrayEntity byteArray = createExceptionByteArray(EXCEPTION_NAME, exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(rootProcessInstanceId); byteArray.setRemovalTime(removalTime); errorDetailsByteArrayId = byteArray.getId(); }
public void setErrorDetails(String exception) { EnsureUtil.ensureNotNull("exception", exception); byte[] exceptionBytes = toByteArray(exception); ByteArrayEntity byteArray = createExceptionByteArray(EXCEPTION_NAME, exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(rootProcessInstanceId); byteArray.setRemovalTime(removalTime); errorDetailsByteArrayId = byteArray.getId(); }
public HistoryEvent createHistoricJobLogFailedEvt(Job job, Throwable exception) { HistoricJobLogEventEntity event = (HistoricJobLogEventEntity) createHistoricJobLogEvt(job, HistoryEventTypes.JOB_FAIL); if(exception != null) { // exception message event.setJobExceptionMessage(exception.getMessage()); // stacktrace String exceptionStacktrace = getExceptionStacktrace(exception); byte[] exceptionBytes = toByteArray(exceptionStacktrace); ByteArrayEntity byteArray = createJobExceptionByteArray(exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(event.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { byteArray.setRemovalTime(event.getRemovalTime()); } event.setExceptionByteArrayId(byteArray.getId()); } return event; }
public HistoryEvent createHistoricJobLogFailedEvt(Job job, Throwable exception) { HistoricJobLogEventEntity event = (HistoricJobLogEventEntity) createHistoricJobLogEvt(job, HistoryEventTypes.JOB_FAIL); if(exception != null) { // exception message event.setJobExceptionMessage(exception.getMessage()); // stacktrace String exceptionStacktrace = getExceptionStacktrace(exception); byte[] exceptionBytes = toByteArray(exceptionStacktrace); ByteArrayEntity byteArray = createJobExceptionByteArray(exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(event.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { byteArray.setRemovalTime(event.getRemovalTime()); } event.setExceptionByteArrayId(byteArray.getId()); } return event; }
byteArray.setRemovalTime(attachment.getRemovalTime());
byteArray.setRemovalTime(attachment.getRemovalTime());
ByteArrayEntity byteArrayEntity = new ByteArrayEntity(historyEvent.getVariableName(), byteValue, ResourceTypes.HISTORY); byteArrayEntity.setRootProcessInstanceId(historyEvent.getRootProcessInstanceId()); byteArrayEntity.setRemovalTime(historyEvent.getRemovalTime());
ByteArrayEntity byteArrayEntity = new ByteArrayEntity(historyEvent.getVariableName(), byteValue, ResourceTypes.HISTORY); byteArrayEntity.setRootProcessInstanceId(historyEvent.getRootProcessInstanceId()); byteArrayEntity.setRemovalTime(historyEvent.getRemovalTime());
public void setErrorDetails(String exception) { EnsureUtil.ensureNotNull("exception", exception); byte[] exceptionBytes = toByteArray(exception); ByteArrayEntity byteArray = createExceptionByteArray(EXCEPTION_NAME, exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(rootProcessInstanceId); byteArray.setRemovalTime(removalTime); errorDetailsByteArrayId = byteArray.getId(); }
public HistoryEvent createHistoricJobLogFailedEvt(Job job, Throwable exception) { HistoricJobLogEventEntity event = (HistoricJobLogEventEntity) createHistoricJobLogEvt(job, HistoryEventTypes.JOB_FAIL); if(exception != null) { // exception message event.setJobExceptionMessage(exception.getMessage()); // stacktrace String exceptionStacktrace = getExceptionStacktrace(exception); byte[] exceptionBytes = toByteArray(exceptionStacktrace); ByteArrayEntity byteArray = createJobExceptionByteArray(exceptionBytes, ResourceTypes.HISTORY); byteArray.setRootProcessInstanceId(event.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { byteArray.setRemovalTime(event.getRemovalTime()); } event.setExceptionByteArrayId(byteArray.getId()); } return event; }
byteArray.setRemovalTime(attachment.getRemovalTime());
ByteArrayEntity byteArrayEntity = new ByteArrayEntity(historyEvent.getVariableName(), byteValue, ResourceTypes.HISTORY); byteArrayEntity.setRootProcessInstanceId(historyEvent.getRootProcessInstanceId()); byteArrayEntity.setRemovalTime(historyEvent.getRemovalTime());