Search in sources :

Example 6 with Condition

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));
    }
}
Also used : FieldCondition(org.drools.workbench.services.verifier.api.client.index.FieldCondition) Condition(org.drools.workbench.services.verifier.api.client.index.Condition) Field(org.drools.workbench.services.verifier.api.client.index.Field)

Aggregations

Condition (org.drools.workbench.services.verifier.api.client.index.Condition)6 Action (org.drools.workbench.services.verifier.api.client.index.Action)3 FieldCondition (org.drools.workbench.services.verifier.api.client.index.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 Column (org.drools.workbench.services.verifier.api.client.index.Column)2 Conditions (org.drools.workbench.services.verifier.api.client.index.Conditions)2 Field (org.drools.workbench.services.verifier.api.client.index.Field)2 BRLConditionVariableColumn (org.drools.workbench.models.guided.dtable.shared.model.BRLConditionVariableColumn)1 BaseColumn (org.drools.workbench.models.guided.dtable.shared.model.BaseColumn)1 BRLCondition (org.drools.workbench.services.verifier.api.client.index.BRLCondition)1 Fields (org.drools.workbench.services.verifier.api.client.index.Fields)1 Values (org.drools.workbench.services.verifier.api.client.index.keys.Values)1