use of org.drools.verifier.components.LiteralRestriction in project drools by kiegroup.
the class ExprConstraintDescrVisitor method createRestriction.
private void createRestriction(int currentOrderNumber, String value, Operator operator) {
LiteralRestriction restriction = LiteralRestriction.createRestriction(pattern, value);
restriction.setFieldPath(field.getPath());
restriction.setPatternIsNot(pattern.isPatternNot());
restriction.setParentPath(pattern.getPath());
restriction.setParentType(pattern.getVerifierComponentType());
restriction.setOrderNumber(currentOrderNumber);
restriction.setOperator(operator);
field.setFieldType(restriction.getValueType());
data.add(restriction);
solvers.addPatternComponent(restriction);
}
Aggregations