diff options
author | 2020-05-13 19:56:07 +0000 | |
---|---|---|
committer | 2020-05-13 19:56:07 +0000 | |
commit | 2cbc4178e4242349782a6dab66a9cec74cf8703a (patch) | |
tree | 3dc0aa2309a37dac5d65e02e47f785351a6a9137 /controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl | |
parent | adc24d773806687215b3dc4fc129dddd84b58014 (diff) | |
parent | d8542b5a55d19584454215cd22d2f86cfb30e0a6 (diff) |
Merge "Handle duplicate events in drools-apps"
Diffstat (limited to 'controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl')
-rw-r--r-- | controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl b/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl index f54786da9..c42131318 100644 --- a/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl +++ b/controlloop/common/controller-frankfurt/src/main/resources/frankfurt.drl @@ -100,7 +100,7 @@ rule "EVENT" $params : ControlLoopParams( $clName : getClosedLoopControlName() ) $event : CanonicalOnset( closedLoopControlName == $clName ) not ( ControlLoopEventManager2( closedLoopControlName == $event.getClosedLoopControlName(), - requestId == $event.getRequestId() ) ) + getContext().getEvent() == $event ) ) then Logger logger = LoggerFactory.getLogger(drools.getRule().getPackage()); @@ -173,7 +173,7 @@ rule "EVENT.MANAGER.NEW.EVENT" when $event : VirtualControlLoopEvent( ) $manager : ControlLoopEventManager2( closedLoopControlName == $event.getClosedLoopControlName(), - requestId == $event.getRequestId() ) + getContext().getEvent() == $event ) then Logger logger = LoggerFactory.getLogger(drools.getRule().getPackage()); @@ -202,6 +202,8 @@ rule "EVENT.MANAGER.NEW.EVENT" // // TODO: handle the abatement. Currently, it's just discarded. // + logger.info("{}: {}.{}: abatement", + $manager.getClosedLoopControlName(), $manager.getPolicyName(), drools.getRule().getName()); break; case FIRST_ONSET: |