Examples of EvalCondition


Examples of org.drools.rule.EvalCondition

            final Declaration[] declarations = new Declaration[usedIdentifiers[0].size()];
            for ( int i = 0, size = usedIdentifiers[0].size(); i < size; i++ ) {
                declarations[i] = context.getDeclarationResolver().getDeclaration( (String) usedIdentifiers[0].get( i ) );
            }

            final EvalCondition eval = new EvalCondition( declarations );

            Serializable expr = ((MVELDialect) context.getDialect()).compile( (String) evalDescr.getContent(),
                                                                              analysis,
                                                                              null,
                                                                              null,
                                                                              context );

            eval.setEvalExpression( new MVELEvalExpression( expr,
                                                            factory ) );

            return eval;
        } catch ( final Exception e ) {
            context.getErrors().add( new RuleError( context.getRule(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.