aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-10-31 17:20:08 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-31 17:20:08 +0000
commit32d406d841dc8c6674a7392e5e925cc0a4a9028b (patch)
tree54569b6ea7bed00f5320610d5e0ed949482828bd
parent1ecdbedcb34c482e0bb5e5add64c82421dd01e33 (diff)
parentaa7d5c71a2bdd2b3a4241e0fd42d6c6872790537 (diff)
Merge "Fix Abatement Processing"
-rw-r--r--controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl4
1 files changed, 3 insertions, 1 deletions
diff --git a/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl b/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl
index 93b4e0a8a..acc980686 100644
--- a/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl
+++ b/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl
@@ -203,6 +203,8 @@ rule "${policyName}.EVENT"
// Retract it from memory
//
retract($event);
+ } else if ($event.closedLoopEventStatus != ControlLoopEventStatus.ONSET) {
+ throw new ControlLoopException($event.closedLoopEventStatus + " received with no prior onset");
} else {
//
// Create an EventManager
@@ -261,7 +263,7 @@ rule "${policyName}.EVENT"
VirtualControlLoopNotification notification = new VirtualControlLoopNotification($event);
notification.notification = ControlLoopNotificationType.REJECTED;
- notification.message = "Exception occurred " + e.getMessage();
+ notification.message = "Exception occurred: " + e.getMessage();
notification.policyName = drools.getRule().getName();
notification.policyScope = "${policyScope}";
notification.policyVersion = "${policyVersion}";