diff options
Diffstat (limited to 'engine-d/src')
-rw-r--r-- | engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java b/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java index b23dde0..5ccf29b 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java @@ -192,6 +192,10 @@ public class DroolsEngine { public void putRaisedIntoStream(VesAlarm raiseAlarm) {
FactHandle factHandle = this.ksession.getFactHandle(raiseAlarm);
if (factHandle != null) {
+ Object obj = this.ksession.getObject(factHandle);
+ if (obj != null && obj instanceof VesAlarm) {
+ raiseAlarm.setRootFlag(((VesAlarm) obj).getRootFlag());
+ }
this.ksession.retract(factHandle);
}
this.ksession.insert(raiseAlarm);
|