Examples of executeQueuedActions()


Examples of org.drools.common.InternalWorkingMemory.executeQueuedActions()

                                                                                     this.rule );
                leftTuple.unlinkFromLeftParent();
                leftTuple.unlinkFromRightParent();
            }

            workingMemory.executeQueuedActions();
            workingMemory.clearNodeMemory( this );
        }

        if ( !context.alreadyVisited( this.tupleSource ) ) {
            this.tupleSource.remove( context,
View Full Code Here

Examples of org.drools.common.InternalWorkingMemory.executeQueuedActions()

        agenda.fireNextItem( null );
        assertEquals( 0,
                      ruleFlowGroup0.size() );
        assertEquals( 0,
                      agenda.agendaSize() );
        workingMemory.executeQueuedActions();
        assertFalse( ruleFlowGroup0.isActive() );

        // A new activation should now be added to the RuleFlowGroup but not to the agenda
        final LeftTuple tuple2 = new LeftTuple( new DefaultFactHandle( 1,
                                                                       "cheese" ),
View Full Code Here

Examples of org.drools.common.InternalWorkingMemory.executeQueuedActions()

                workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation,
                                                                                     propagationContext,
                                                                                     this.rule );                               
            }

            workingMemory.executeQueuedActions();
            workingMemory.clearNodeMemory( this );
        }

        removeShare();
       
View Full Code Here

Examples of org.drools.common.InternalWorkingMemory.executeQueuedActions()

        agenda.fireNextItem( null );
        assertEquals( 0,
                      ruleFlowGroup0.size() );
        assertEquals( 0,
                      agenda.agendaSize() );
        workingMemory.executeQueuedActions();
        assertFalse( ruleFlowGroup0.isActive() );

        // A new activation should now be added to the RuleFlowGroup but not to the agenda
        final LeftTupleImpl tuple2 = new LeftTupleImpl( new DefaultFactHandle( 1,
                                                                       "cheese" ),
View Full Code Here

Examples of org.drools.common.InternalWorkingMemory.executeQueuedActions()

                                                                                     this.rule );
                leftTuple.unlinkFromLeftParent();
                leftTuple.unlinkFromRightParent();
            }

            workingMemory.executeQueuedActions();
            workingMemory.clearNodeMemory( this );
        }

        if ( !context.alreadyVisited( this.tupleSource ) ) {
            this.tupleSource.remove( context,
View Full Code Here

Examples of org.drools.common.InternalWorkingMemory.executeQueuedActions()

                workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation,
                                                                                     propagationContext,
                                                                                     this.rule );
            }

            workingMemory.executeQueuedActions();
            workingMemory.clearNodeMemory( this );
        }

        if ( !context.alreadyVisited( this.tupleSource ) ) {
            this.tupleSource.remove( context,
View Full Code Here

Examples of org.drools.common.InternalWorkingMemory.executeQueuedActions()

                workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation,
                                                                                     propagationContext,
                                                                                     this.rule );                               
            }

            workingMemory.executeQueuedActions();
            workingMemory.clearNodeMemory( this );
        }

        if( !context.alreadyVisited( this.tupleSource ) ) {
            this.tupleSource.remove( context,
View Full Code Here

Examples of org.drools.common.InternalWorkingMemory.executeQueuedActions()

        agenda.fireNextItem( null );
        assertEquals( 0,
                      ruleFlowGroup0.size() );
        assertEquals( 0,
                      agenda.agendaSize() );
        workingMemory.executeQueuedActions();
        assertFalse( ruleFlowGroup0.isActive() );

        // A new activation should now be added to the RuleFlowGroup but not to the agenda
        final LeftTupleImpl tuple2 = new LeftTupleImpl( new DefaultFactHandle( 1,
                                                                       "cheese" ),
View Full Code Here

Examples of org.drools.core.common.AbstractWorkingMemory.executeQueuedActions()

    public void testExecuteQueueActions() {
        final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
        final AbstractWorkingMemory wm = (AbstractWorkingMemory) ruleBase.newStatefulSession();
        final ReentrantAction action = new ReentrantAction();
        wm.queueWorkingMemoryAction( action );
        wm.executeQueuedActions();
        assertEquals( 2, action.counter.get() );
    }
   
    @Test
    public void testDifferentEntryPointsOnSameFact() {
View Full Code Here

Examples of org.drools.core.common.AbstractWorkingMemory.executeQueuedActions()

        // Retract the tuple and test the logically asserted fact was also retracted
        node.retractLeftTuple( tuple1,
                               context1,
                               workingMemory );

        workingMemory.executeQueuedActions();

        assertLength( 1,
                      sink.getRetracted() );

        Object[] values = (Object[]) sink.getRetracted().get( 0 );
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.