Skip to content
Snippets Groups Projects
Commit 902fa576 authored by Jonas Blatt's avatar Jonas Blatt :ant:
Browse files

Merge branch 'feat/verifier' into feat/dmnapp

parents bf4b6a40 d007b3b6
No related branches found
No related tags found
No related merge requests found
...@@ -49,12 +49,13 @@ public class MissingRuleVerifier extends AbstractVerifier { ...@@ -49,12 +49,13 @@ public class MissingRuleVerifier extends AbstractVerifier {
for (VDmnRule missingRule : missingRules) { for (VDmnRule missingRule : missingRules) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append(templateDecision(dmnDecisionTable.getDmnDecision())); sb.append(templateDecision(dmnDecisionTable.getDmnDecision()));
sb.append("The following rule is not defined: {"); sb.append("The following rule is not defined: { ");
sb.append( sb.append(
missingRule.getDmnInputValues().stream() missingRule.getDmnInputValues().stream()
.map(v -> v.getBoundary().getParsedText()) .map(v -> v.getBoundary().getParsedText())
.collect(Collectors.joining("), ("))); .map(s -> s.isEmpty() ? "-" : s)
sb.append("}"); .collect(Collectors.joining(" / ")));
sb.append(" }");
vreFactory.addElement(VerificationResultEntryElement.create(dmnDecisionTable)); vreFactory.addElement(VerificationResultEntryElement.create(dmnDecisionTable));
vreFactory.addToEntry(VerificationClassification.WARNING, sb.toString()); vreFactory.addToEntry(VerificationClassification.WARNING, sb.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment