Package org.drools.verifier.components

Examples of org.drools.verifier.components.Constraint


            field = ObjectTypeFactory.createField( descr.getFieldName(),
                                                   objectType );
            data.add( field );
        }

        constraint = new Constraint( pattern );

        constraint.setFieldPath( field.getPath() );
        constraint.setFieldName( field.getName() );
        constraint.setPatternIsNot( pattern.isPatternNot() );
        constraint.setFieldPath( field.getPath() );
View Full Code Here


            field = ObjectTypeFactory.createField( descr.getFieldName(),
                                                   objectType );
            data.add( field );
        }

        constraint = new Constraint( pattern );

        constraint.setFieldPath( field.getPath() );
        constraint.setFieldName( field.getName() );
        constraint.setPatternIsNot( pattern.isPatternNot() );
        constraint.setFieldPath( field.getPath() );
View Full Code Here

          currentObjectType.getId(), currentObjectType.getName());
      data.add(field);
    }
    currentField = field;

    Constraint constraint = new Constraint();

    constraint.setRuleId(currentRule.getId());
    constraint.setFieldId(currentField.getId());
    constraint.setFieldName(currentField.getName());
    constraint.setPatternId(currentPattern.getId());
    constraint.setPatternIsNot(currentPattern.isPatternNot());
    constraint.setFieldId(field.getId());
    constraint.setOrderNumber(orderNumber);
    constraint.setParent(parent);

    data.add(constraint);

    currentConstraint = constraint;
View Full Code Here

        saveVerifierComponentAndGet( rule );

        Pattern pattern = VerifierComponentMockFactory.createPattern1();
        saveVerifierComponentAndGet( pattern );

        saveVerifierComponentAndGet( new Constraint( pattern ) );
        saveVerifierComponentAndGet( new InlineEvalDescr( pattern ) );
        saveVerifierComponentAndGet( new ObjectType() );
        saveVerifierComponentAndGet( new RuleOperatorDescr( rule,
                                                            OperatorDescrType.AND ) );
        saveVerifierComponentAndGet( new PatternOperatorDescr( pattern,
View Full Code Here

TOP

Related Classes of org.drools.verifier.components.Constraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.