diff options
author | Shiwei Tian <tian.shiwei@zte.com.cn> | 2017-09-28 19:15:33 +0800 |
---|---|---|
committer | Shiwei Tian <tian.shiwei@zte.com.cn> | 2017-09-28 19:15:33 +0800 |
commit | a779cb1587f67a3fedd945445f5abfbb05a1d4a3 (patch) | |
tree | 449bb66510cc57fa4ac92f671698f00c55a178ae /engine-d/src | |
parent | f73423f9b51c481036d8315c7caf7d3eaf46be93 (diff) |
modify drools engine
Issue-ID: HOLMES-44
Change-Id: I486232f783611132299a7dd95fa9de45bb69e343
Signed-off-by: Shiwei Tian <tian.shiwei@zte.com.cn>
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);
|