summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>2020-11-18 09:31:03 +0000
committerMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>2020-11-18 09:31:38 +0000
commit978c62a1b2716081c08c46a5bfde54dbe94d65d5 (patch)
tree75e791e78c908da3f052a5602b791d3c7fe50493 /rules
parent8ab4440933ce45903547c6df411f021c91df9887 (diff)
MDONS Holmes rule fix
Change-Id: I0fde4510b2a6876f3a997d67b0cc21f433264b88 Issue-ID: HOLMES-378 Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Diffstat (limited to 'rules')
-rw-r--r--rules/mdons-rule.drl10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules/mdons-rule.drl b/rules/mdons-rule.drl
index a5a64d5..4b7dc01 100644
--- a/rules/mdons-rule.drl
+++ b/rules/mdons-rule.drl
@@ -9,8 +9,8 @@ import org.onap.holmes.common.dmaap.entity.PolicyMsg;
import org.onap.holmes.common.dmaap.DmaapService;
import org.onap.holmes.common.utils.DroolsLog;
import org.onap.holmes.common.dropwizard.ioc.utils.ServiceLocatorHolder;
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
+import org.onap.holmes.common.dmaap.store.UniqueRequestIdCache;
+
import java.util.List;
import java.util.Map;
@@ -50,8 +50,8 @@ function PolicyMsg createPolicyMsg(VesAlarm alarm, String serviceInstanceId, Str
m.setClosedLoopAlarmEnd(alarm.getLastEpochMicrosec());
m.setTarget("vserver.vserver-name");
m.setAai(getAaiObjectPolicy(serviceName, serviceInstanceId));
-
- DmaapService.alarmUniqueRequestID.put(alarm.getEventId(), m.getRequestID());
+
+ ServiceLocatorHolder.getLocator().getService(UniqueRequestIdCache.class).put(alarm.getEventId(), m.getRequestID());
return m;
}
@@ -127,4 +127,4 @@ rule "Process Alarms cleared TAPI"
processAlarmCleared($a.getEventId());
$a.setRootFlag(1);
-end \ No newline at end of file
+end