diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2017-10-31 17:20:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-31 17:20:08 +0000 |
commit | 32d406d841dc8c6674a7392e5e925cc0a4a9028b (patch) | |
tree | 54569b6ea7bed00f5320610d5e0ed949482828bd | |
parent | 1ecdbedcb34c482e0bb5e5add64c82421dd01e33 (diff) | |
parent | aa7d5c71a2bdd2b3a4241e0fd42d6c6872790537 (diff) |
Merge "Fix Abatement Processing"
-rw-r--r-- | controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl | 4 |
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}"; |