summaryrefslogtreecommitdiffstats
path: root/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-04-08 14:40:37 -0400
committerJim Hahn <jrh3@att.com>2020-04-08 15:15:46 -0400
commitdc272e0912390292fa09e84d56380ac3697250cd (patch)
tree218baf4789dc13a076dee9d5201755a80f3e2c70 /controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl
parentac944dfa70a320de56ee28b5007fcc33a7165643 (diff)
Add SDNR notifications to frankfurt rules
Issue-ID: POLICY-2468 Change-Id: Ibf4d3e5f62fa3106028dcf85050c270b8eab0a89 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl')
-rw-r--r--controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl14
1 files changed, 14 insertions, 0 deletions
diff --git a/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl b/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl
index 00c4f5f10..f54786da9 100644
--- a/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl
+++ b/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl
@@ -243,6 +243,20 @@ rule "EVENT.MANAGER.PROCESSING"
$manager, e);
}
//
+ // Generate Response notification
+ //
+ try {
+ ControlLoopResponse clResponse = $manager.getControlLoopResponse();
+ if (clResponse != null) {
+ PolicyEngineConstants.getManager().deliver("DCAE_CL_RSP", clResponse);
+ }
+
+ } catch(RuntimeException e) {
+ logger.warn("{}: {}.{}: manager={} exception generating Response notification",
+ $manager.getClosedLoopControlName(), $manager.getPolicyName(), drools.getRule().getName(),
+ $manager, e);
+ }
+ //
// Discard this message and wait for the next response.
//
$manager.nextStep();