use of org.drools.workbench.services.verifier.api.client.index.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