use of org.drools.verifier.core.index.model.Condition in project drools-wb by kiegroup.
the class FieldConditionBuilder method build.
public Condition build() throws BuildException {
PortablePreconditions.checkNotNull("conditionCol52", conditionCol52);
PortablePreconditions.checkNotNull("columnIndex", columnIndex);
try {
final Field field = resolveField();
final Condition condition = buildCondition(field);
field.getConditions().add(condition);
return condition;
} catch (final BuildException buildException) {
throw buildException;
} catch (final Exception e) {
throw new BuildException("Failed to build " + pattern.getName() + " # " + ToString.toString(conditionCol52));
}
}
Aggregations