Package org.drools.common

Examples of org.drools.common.InternalAgenda.addActivation()


            item.setSequenence( this.sequence );

            tuple.setActivation( item );
            memory.getTupleMemory().add( tuple );

            boolean added = agenda.addActivation( item );

            item.setActivated( added );

            // We only want to fire an event on a truly new Activation and not on an Activation as a result of a modify
            if ( added && fireActivationCreated ) {
View Full Code Here


                                final InternalWorkingMemory workingMemory) {
        boolean fire = createActivations(leftTuple, context, workingMemory, false);
        // Can be null if no Activation was created, only add it to the agenda if it's not a control rule.
        if ( fire && !fireDirect) {
            final InternalAgenda agenda = (InternalAgenda) workingMemory.getAgenda();
            agenda.addActivation( (AgendaItem) leftTuple.getObject() );           
        }
    }
   
    public boolean createActivations(final LeftTuple tuple,
                                     final PropagationContext context,
View Full Code Here

                                                context,
                                                workingMemory,
                                                this,
                                                false );
        if( fire && !fireDirect ) {
            agenda.addActivation( (AgendaItem) leftTuple.getObject() );
        }
    }

    public void modifyLeftTuple(LeftTuple leftTuple,
                                PropagationContext context,
View Full Code Here

                                                context,
                                                workingMemory,
                                                this,
                                                false );
        if( fire && !fireDirect ) {
            agenda.addActivation( (AgendaItem) leftTuple.getObject() );           
        }
    }

    public void modifyLeftTuple(LeftTuple leftTuple,
                                PropagationContext context,
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.