diff --git a/src/main/resources/public/css/app.css b/src/main/resources/public/css/app.css
index 87325cf0..50be2f75 100644
--- a/src/main/resources/public/css/app.css
+++ b/src/main/resources/public/css/app.css
@@ -104,3 +104,8 @@
.dmn-decision-table-container tbody .dmn-row-highlighted td {
background: rgba(0, 125, 255, 0.2);
}
+
+#decision-evaluation-message .alert-info {
+ background: #d4e5ff;
+ border-color: #7fb4bf;
+}
diff --git a/src/main/resources/public/js/view-decision-evaluation.js b/src/main/resources/public/js/view-decision-evaluation.js
index e65db530..a77dbd2b 100644
--- a/src/main/resources/public/js/view-decision-evaluation.js
+++ b/src/main/resources/public/js/view-decision-evaluation.js
@@ -42,7 +42,7 @@ function loadDecisionEvaluationView() {
}
if (decisionEvaluation.evaluationFailureMessage) {
- $("#decision-evaluation-failure-message").html(`
+ $("#decision-evaluation-message").html(`
${decisionEvaluation.evaluationFailureMessage}
`);
@@ -72,6 +72,9 @@ function onDecisionEvaluationViewChanged(event) {
$(".dmn-row-highlighted").each(function () {
$(this).removeClass("dmn-row-highlighted");
});
+ if (!decisionEvaluation.failedDecision) {
+ $("#decision-evaluation-message").html("");
+ }
// update the diagram based on the active view
let id = event.activeView.id;
@@ -107,6 +110,16 @@ function onDecisionEvaluationViewChanged(event) {
let ruleIndex = rule.ruleIndex - 1;
$(".tjs-table tbody tr")[ruleIndex].classList.add("dmn-row-highlighted");
});
+
+ if (
+ currentEvaluatedDecision.matchedRules?.length === 0 &&
+ !decisionEvaluation.failedDecision
+ ) {
+ $("#decision-evaluation-message").html(`
+
+ No rule of the decision table matched the given input.
+
`);
+ }
}
if (event.activeView.type === "decisionTable") {
diff --git a/src/main/resources/templates/views/monitoring/decision-evaluations/decision-evaluation.html b/src/main/resources/templates/views/monitoring/decision-evaluations/decision-evaluation.html
index 3b19b10c..8d9d24af 100644
--- a/src/main/resources/templates/views/monitoring/decision-evaluations/decision-evaluation.html
+++ b/src/main/resources/templates/views/monitoring/decision-evaluations/decision-evaluation.html
@@ -146,7 +146,7 @@ Decision Output