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