summaryrefslogtreecommitdiffstats
path: root/rules/mdons-rule.drl
diff options
context:
space:
mode:
Diffstat (limited to 'rules/mdons-rule.drl')
-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