if ( getStageActivationsGroup().isEmpty() ) {
return;
}
org.drools.core.util.LinkedList<ActivationGroupNode> list = getStageActivationsGroup().getList();
final EventSupport eventsupport = (EventSupport) this.workingMemory;
for ( ActivationGroupNode node = list.removeFirst(); node != null; node = list.removeFirst() ) {
AgendaItem item = (AgendaItem) node.getActivation();
// This must be set to false otherwise modify won't work properly
item.setQueued(false);
eventsupport.getAgendaEventSupport().fireActivationCancelled( item,
this.workingMemory,
MatchCancelledCause.CLEAR );
}
}