Package org.drools.reteoo.QueryElementNode

Examples of org.drools.reteoo.QueryElementNode.UnificationNodeViewChangedEventListener


                           final Rule rule,
                           final Activation activation,
                           ObjectTypeConf typeConf) {
            if( object instanceof DroolsQuery ) {
                DroolsQuery query = ( DroolsQuery ) object;
                UnificationNodeViewChangedEventListener collector = ( UnificationNodeViewChangedEventListener ) query.getQueryResultCollector();
                for ( int i = 0; i < 3; i++ ) {
                    Variable[] args = query.getVariables();
                    args[0].setValue( "string_0_" + i );
                    args[2].setValue( "string_2_" + i );
                    args[5].setValue( "string_5_" + i );
                    collector.rowAdded( rule, null, null, this );
                }
            } else {
                super.insert( handle, object, rule, activation, typeConf );
            }
        }
View Full Code Here


                           final Rule rule,
                           final Activation activation,
                           ObjectTypeConf typeConf) {
            if( object instanceof DroolsQuery ) {
                DroolsQuery query = ( DroolsQuery ) object;
                UnificationNodeViewChangedEventListener collector = ( UnificationNodeViewChangedEventListener ) query.getQueryResultCollector();
                for ( int i = 0; i < 3; i++ ) {
                    Object[] args = query.getElements();
                    ((Variable)args[0]).setValue( "string_0_" + i );
                    ((Variable)args[2]).setValue( "string_2_" + i );
                    ((Variable)args[5]).setValue( "string_5_" + i );
                    collector.rowAdded( rule, null, null, this );
                }
            } else {
                super.insert( handle, object, rule, activation, typeConf );
            }
        }
View Full Code Here

TOP

Related Classes of org.drools.reteoo.QueryElementNode.UnificationNodeViewChangedEventListener

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.