Examples of decreaseDormantActivations()


Examples of org.drools.common.DefaultAgenda.decreaseDormantActivations()

        AgendaItem item = ( AgendaItem ) activation;
        item.removeAllBlockersAndBlocked(agenda);
       
        if ( agenda.isDeclarativeAgenda() && activation.getFactHandle() == null ) {
            // This a control rule activation, nothing to do except update counters. As control rules are not in agenda-groups etc.
            agenda.decreaseDormantActivations(); // because we know ControlRules fire straight away and then become dormant
            return;
        } else {
            // we are retracting an actual Activation, so also remove it and it's handle from the WM.
            agenda.removeActivation( (AgendaItem) activation );
        }
View Full Code Here

Examples of org.drools.common.DefaultAgenda.decreaseDormantActivations()

                                                                                                workingMemory,
                                                                                                ActivationCancelledCause.WME_MODIFY );
                agenda.decreaseActiveActivations();
            }
        } else {
            agenda.decreaseDormantActivations();
        }
       
        workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation,
                                                                             context,
                                                                             this.rule );       
View Full Code Here

Examples of org.drools.common.DefaultAgenda.decreaseDormantActivations()

        AgendaItem item = ( AgendaItem ) activation;
        item.removeAllBlockersAndBlocked(agenda);
       
        if ( agenda.isDeclarativeAgenda() && activation.getFactHandle() == null ) {
            // This a control rule activation, nothing to do except update counters. As control rules are not in agenda-groups etc.
            agenda.decreaseDormantActivations(); // because we know ControlRules fire straight away and then become dormant
            return;
        } else {
            // we are retracting an actual Activation, so also remove it and it's handle from the WM.
            agenda.removeActivation( (AgendaItem) activation );
        }
View Full Code Here

Examples of org.drools.common.DefaultAgenda.decreaseDormantActivations()

                                                                                                workingMemory,
                                                                                                ActivationCancelledCause.WME_MODIFY );
                agenda.decreaseActiveActivations();
            }
        } else {
            agenda.decreaseDormantActivations();
        }
       
        workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation,
                                                                             context,
                                                                             this.rule );       
View Full Code Here

Examples of org.drools.common.DefaultAgenda.decreaseDormantActivations()

        AgendaItem item = ( AgendaItem ) activation;
        item.removeAllBlockersAndBlocked(agenda);
       
        if ( agenda.isDeclarativeAgenda() && activation.getFactHandle() == null ) {
            // This a control rule activation, nothing to do except update counters. As control rules are not in agenda-groups etc.
            agenda.decreaseDormantActivations(); // because we know ControlRules fire straight away and then become dormant
            return;
        } else {
            // we are retracting an actual Activation, so also remove it and it's handle from the WM.
            agenda.removeActivation( (AgendaItem) activation );
        }
View Full Code Here

Examples of org.drools.common.DefaultAgenda.decreaseDormantActivations()

                                                                                                workingMemory,
                                                                                                ActivationCancelledCause.WME_MODIFY );
                agenda.decreaseActiveActivations();
            }
        } else {
            agenda.decreaseDormantActivations();
        }
       
        workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation,
                                                                             context,
                                                                             this.rule );       
View Full Code Here

Examples of org.drools.common.DefaultAgenda.decreaseDormantActivations()

        AgendaItem item = ( AgendaItem ) activation;
        item.removeAllBlockersAndBlocked(agenda);
       
        if ( agenda.isDeclarativeAgenda() && activation.getFactHandle() == null ) {
            // This a control rule activation, nothing to do except update counters. As control rules are not in agenda-groups etc.
            agenda.decreaseDormantActivations(); // because we know ControlRules fire straight away and then become dormant
            return;
        } else {
            // we are retracting an actual Activation, so also remove it and it's handle from the WM.
            agenda.removeActivation( (AgendaItem) activation );
        }
View Full Code Here

Examples of org.drools.common.DefaultAgenda.decreaseDormantActivations()

                                                                                                workingMemory,
                                                                                                ActivationCancelledCause.WME_MODIFY );
                agenda.decreaseActiveActivations();
            }
        } else {
            agenda.decreaseDormantActivations();
        }
       
        workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation,
                                                                             context,
                                                                             this.rule );       
View Full Code Here

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

            leftTuple.setObject( null );
        }
        boolean fire = agenda.createActivation( leftTuple, context, workingMemory, this, reuseActivation );
        if ( fire && !isFireDirect() ) {
            // This activation is currently dormant and about to reactivated, so decrease the dormant count.
            agenda.decreaseDormantActivations();

            agenda.modifyActivation( (AgendaItem) leftTuple.getObject(), false );
        }
    }
View Full Code Here

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

          leftTuple.setObject( null );
        }
        boolean fire = agenda.createActivation( leftTuple, context, workingMemory, this, reuseActivation );
        if ( fire && !isFireDirect() ) {
            // This activation is currently dormant and about to reactivated, so decrease the dormant count.
            agenda.decreaseDormantActivations();

            agenda.modifyActivation( (AgendaItem) leftTuple.getObject(), false );
        }
    }
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.