}
}
public void importProperties(Subject subject, AlertCondition fromCondition, ConditionBean toBean) {
// shared measurement processing
MeasurementDefinition definition = fromCondition.getMeasurementDefinition();
toBean.setCallTimeMetricName(definition.getDisplayName());
toBean.setCallTimeMetricId(definition.getId());
toBean.setTrigger(getTriggerName());
if (fromCondition.getCategory() == AlertConditionCategory.THRESHOLD) {
toBean.setThresholdType(TYPE_ABS);
toBean.setCalltimeAbsOption(fromCondition.getOption());
toBean.setCalltimeAbsPattern(fromCondition.getName());
try {
// this is coming from the backing store, so
String formattedValue = MeasurementConverter.format(fromCondition.getThreshold(),
definition.getUnits(), true);
toBean.setCtAbsoluteValue(formattedValue);
} catch (MeasurementConversionException mce) {
toBean.setCtAbsoluteValue("Conversion Error");
}