@Override public ExecutionErrorSummary apply(final ExecutionErrorInstance executionErrorInstance) { if (executionErrorInstance == null) { return null; } return ExecutionErrorSummary.builder() .errorId(executionErrorInstance.getErrorId()) .error(executionErrorInstance.getError()) .acknowledged(executionErrorInstance.isAcknowledged()) .acknowledgedAt(executionErrorInstance.getAcknowledgedAt()) .acknowledgedBy(executionErrorInstance.getAcknowledgedBy()) .activityId(executionErrorInstance.getActivityId()) .activityName(executionErrorInstance.getActivityName()) .errorDate(executionErrorInstance.getErrorDate()) .type(ExecutionErrorType.fromType(executionErrorInstance.getType())) .deploymentId(executionErrorInstance.getContainerId()) .processInstanceId(executionErrorInstance.getProcessInstanceId()) .processId(executionErrorInstance.getProcessId()) .jobId(executionErrorInstance.getJobId()) .message(executionErrorInstance.getErrorMessage()) .build(); } }
ExecutionErrorInstance errorInstance = errors.get(0); assertNotNull(errorInstance.getErrorId()); assertNull(errorInstance.getError()); assertNotNull(errorInstance.getProcessInstanceId()); assertNotNull(errorInstance.getActivityId());
assertEquals(error.getError(), es.getError()); assertEquals(error.getType(),
assertNull(errorInstance.getError()); assertNotNull(errorInstance.getProcessInstanceId()); assertNotNull(errorInstance.getActivityId());
assertEquals(error.getError(), es.getError()); assertEquals(error.getType(),
ExecutionErrorInstance errorInstance = errors.get(0); assertNotNull(errorInstance.getErrorId()); assertNull(errorInstance.getError()); assertNotNull(errorInstance.getProcessInstanceId()); assertNotNull(errorInstance.getActivityId());
ExecutionErrorInstance errorInstance = errors.get(0); assertNotNull(errorInstance.getErrorId()); assertNull(errorInstance.getError()); assertNotNull(errorInstance.getProcessInstanceId()); assertNotNull(errorInstance.getActivityId());