Package org.drools.spi

Examples of org.drools.spi.InstrumentedConsequence


                                                                  DefaultConflictResolver.getInstance( ) );
        agendas[0] = agenda;

        Rule rule = new Rule( "test-rule" );

        InstrumentedConsequence consequence = new InstrumentedConsequence( );

        rule.setConsequence( consequence );

        TerminalNode node = new TerminalNode( new MockTupleSource( ), rule );
View Full Code Here


        Declaration decl = rule.addParameterDeclaration( "cheese", new MockObjectType( true ) );

        ReteTuple tuple = new ReteTuple( (WorkingMemoryImpl) ruleBase.newWorkingMemory( ), decl, handle );

        InstrumentedConsequence consequence = new InstrumentedConsequence( );

        rule.setConsequence( consequence );

        AgendaItem item = new AgendaItem( tuple, rule );

        item.fire( ( WorkingMemoryImpl ) tuple.getWorkingMemory( ) );

        assertEquals( 1, consequence.getInvokedTuples( ).size( ) );

        assertTrue( consequence.getInvokedTuples( ).contains( tuple ) );
    }
View Full Code Here

TOP

Related Classes of org.drools.spi.InstrumentedConsequence

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.