ObjectSource rightInput = new ObjectTypeNode( buildContext.getNextId(),
epn,
new ClassObjectType( rightType ),
buildContext );
ReteTesterHelper reteTesterHelper = new ReteTesterHelper();
Pattern pattern = new Pattern( 0, new ClassObjectType( leftType ) );
//BetaNodeFieldConstraint betaConstraint = null;
BetaConstraints betaConstraints = null;
if ( constraintFieldName != null ) {
ClassFieldAccessorStore store = (ClassFieldAccessorStore) reteTesterHelper.getStore();
InternalReadAccessor extractor = store.getReader( leftType,
leftFieldName,
getClass().getClassLoader() );
Declaration declr = new Declaration( leftVariableName,
extractor,
pattern );
try {
betaConstraints = new SingleBetaConstraints( reteTesterHelper.getBoundVariableConstraint( rightType,
constraintFieldName,
declr,
constraintOperator ), buildContext.getRuleBase().getConfiguration() );
} catch ( IntrospectionException e ) {
throw new RuntimeException( e );