aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/templates
diff options
context:
space:
mode:
authorJoshua Reich <jreich@research.att.com>2018-08-14 15:04:03 -0700
committerJoshua Reich <jreich@research.att.com>2018-08-31 11:51:59 -0700
commita35ca0b16ffa99119b5d16cd005f91ff734c8df8 (patch)
treea5437a6dfb69000772fa530f0878a9642412dd7f /controlloop/templates
parent8279af376b435e1d7dd118a1955c5681edf3b847 (diff)
Add code to store abatement events.
Stores abatement events in history DB. Change-Id: Ifca6acd42cd9eea85e27765bd268a491028e305a Issue-ID: POLICY-975 Signed-off-by: Joshua Reich <jreich@research.att.com>
Diffstat (limited to 'controlloop/templates')
-rw-r--r--controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl4
1 files changed, 4 insertions, 0 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 71715c075..b210c79d6 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
@@ -340,6 +340,10 @@ rule "${policyName}.EVENT.MANAGER"
logger.info("{}: {}: abatement received for {}. Closing the control loop",
$params.getClosedLoopControlName(), drools.getRule().getName(),
$event.getRequestId());
+
+ /// DB Write---end event processing for this RequestId()
+ $manager.commitAbatement("Event Abated","Closed");
+
notification.setFrom("policy");
notification.setPolicyName(drools.getRule().getName());
notification.setPolicyScope("${policyScope}");