Alarm State improvement
This commit is contained in:
parent
953054fadc
commit
46f742441f
@ -255,7 +255,9 @@ class AlarmState {
|
||||
if (StringUtils.isNotEmpty(alarmDetailsStr)) {
|
||||
for (var keyFilter : ruleState.getAlarmRule().getCondition().getCondition()) {
|
||||
EntityKeyValue entityKeyValue = dataSnapshot.getValue(keyFilter.getKey());
|
||||
alarmDetailsStr = alarmDetailsStr.replaceAll(String.format("\\$\\{%s}", keyFilter.getKey().getKey()), getValueAsString(entityKeyValue));
|
||||
if (entityKeyValue != null) {
|
||||
alarmDetailsStr = alarmDetailsStr.replaceAll(String.format("\\$\\{%s}", keyFilter.getKey().getKey()), getValueAsString(entityKeyValue));
|
||||
}
|
||||
}
|
||||
ObjectNode newDetails = JacksonUtil.newObjectNode();
|
||||
newDetails.put("data", alarmDetailsStr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user