@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(); } }
assertNotNull(errorInstance.getErrorId()); assertNull(errorInstance.getError()); assertNotNull(errorInstance.getProcessInstanceId()); assertNotNull(errorInstance.getActivityId()); assertNotNull(errorInstance.getErrorDate());
assertNotNull(errorInstance.getErrorId()); assertNull(errorInstance.getError()); assertNotNull(errorInstance.getProcessInstanceId()); assertNotNull(errorInstance.getActivityId()); assertNotNull(errorInstance.getErrorDate());
assertNotNull(errorInstance.getErrorId()); assertNull(errorInstance.getError()); assertNotNull(errorInstance.getProcessInstanceId()); assertNotNull(errorInstance.getActivityId()); assertNotNull(errorInstance.getErrorDate());
assertNotNull(errorInstance.getErrorId()); assertNull(errorInstance.getError()); assertNotNull(errorInstance.getProcessInstanceId()); assertNotNull(errorInstance.getActivityId()); assertNotNull(errorInstance.getErrorDate());
assertEquals(error.getProcessId(), es.getProcessId()); assertEquals(error.getProcessInstanceId(), es.getProcessInstanceId()); assertEquals(error.getJobId(),
assertEquals(error.getProcessId(), es.getProcessId()); assertEquals(error.getProcessInstanceId(), es.getProcessInstanceId()); assertEquals(error.getJobId(),