ConditionType conditionType,
String conditionValue) throws ReservedFieldException, ConfigurationException {
super(metricRegistry, id, title, order, Type.SUBSTRING, cursorStrategy, sourceField, targetField, extractorConfig, creatorUserId, converters, conditionType, conditionValue);
if (extractorConfig == null || extractorConfig.get("begin_index") == null || extractorConfig.get("end_index") == null) {
throw new ConfigurationException("Missing configuration fields. Required: begin_index, end_index");
}
try {
beginIndex = (Integer) extractorConfig.get("begin_index");
endIndex = (Integer) extractorConfig.get("end_index");
} catch (ClassCastException e) {
throw new ConfigurationException("Index positions cannot be casted to Integer.");
}
}