if (acls.size() > 1) {
history.setConditionText("Multiple Conditions");
history.setConditionValue("--");
} else if (acls.size() == 1) {
AlertConditionLog log = acls.iterator().next();
AlertCondition condition = log.getCondition();
String displayText = AlertDefUtil.formatAlertConditionForDisplay(condition, request);
String firedValue = log.getValue();
if (condition.getMeasurementDefinition() != null) {
DataType type = condition.getMeasurementDefinition().getDataType();
if (type == DataType.CALLTIME || type == DataType.TRAIT)
firedValue = log.getValue();
else
firedValue = MeasurementConverter.format(Double.valueOf(log.getValue()), condition
.getMeasurementDefinition().getUnits(), true);
}
history.setConditionText(displayText);
history.setConditionValue(firedValue);