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

#2 Optimize Message Text Missing Rule Verification

parent 2a42ccd8
No related branches found
No related tags found
No related merge requests found
......@@ -49,12 +49,13 @@ public class MissingRuleVerifier extends AbstractVerifier {
for (VDmnRule missingRule : missingRules) {
StringBuilder sb = new StringBuilder();
sb.append(templateDecision(dmnDecisionTable.getDmnDecision()));
sb.append("The following rule is not defined: {");
sb.append("The following rule is not defined: { ");
sb.append(
missingRule.getDmnInputValues().stream()
.map(v -> v.getBoundary().getParsedText())
.collect(Collectors.joining("), (")));
sb.append("}");
.map(s -> s.isEmpty() ? "-" : s)
.collect(Collectors.joining(" / ")));
sb.append(" }");
vreFactory.addElement(VerificationResultEntryElement.create(dmnDecisionTable));
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