Search in sources :

Example 6 with Condition

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));
    }
}
Also used : Condition(org.drools.verifier.core.index.model.Condition) FieldCondition(org.drools.verifier.core.index.model.FieldCondition) Field(org.drools.verifier.core.index.model.Field)

Aggregations

Condition (org.drools.verifier.core.index.model.Condition)6 Action (org.drools.verifier.core.index.model.Action)3 Column (org.drools.verifier.core.index.model.Column)3 Field (org.drools.verifier.core.index.model.Field)3 FieldCondition (org.drools.verifier.core.index.model.FieldCondition)3 ArrayList (java.util.ArrayList)2 ActionCol52 (org.drools.workbench.models.guided.dtable.shared.model.ActionCol52)2 ConditionCol52 (org.drools.workbench.models.guided.dtable.shared.model.ConditionCol52)2 Values (org.drools.verifier.core.index.keys.Values)1 Conditions (org.drools.verifier.core.index.model.Conditions)1 Fields (org.drools.verifier.core.index.model.Fields)1 ObjectField (org.drools.verifier.core.index.model.ObjectField)1 RuleAttribute (org.drools.verifier.core.index.model.RuleAttribute)1 AttributeCol52 (org.drools.workbench.models.guided.dtable.shared.model.AttributeCol52)1 BRLConditionVariableColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLConditionVariableColumn)1 BaseColumn (org.drools.workbench.models.guided.dtable.shared.model.BaseColumn)1 DTCellValue52 (org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52)1 Test (org.junit.Test)1