(wip) Rückgabe von Informationen für den Fehlerfall

This commit is contained in:
Andreas Penski (init) 2019-06-24 15:39:50 +02:00 committed by Andreas Penski
parent dc3f62670c
commit 88b3f01276
3 changed files with 34 additions and 6 deletions

View file

@ -135,6 +135,8 @@ public class DefaultCheck implements Check {
if (t.getSchemaValidationResult() != null) {
result.setSchemaViolations(convertErrors(t.getSchemaValidationResult().getErrors()));
}
result.setProcessingSuccessful(!t.isStopped() && t.isFinished());
result.getProcessingErrors().addAll(t.getReportInput().getProcessingError().getError());
result.setSchematronResult(t.getReportInput().getValidationResultsSchematron().stream()
.map(e -> e.getResults().getSchematronOutput()).collect(Collectors.toList()));
return result;