if ( activation.getActivationGroupNode() != null ) {
activation.getActivationGroupNode().getActivationGroup().removeActivation( activation );
}
if ( activation.getRuleFlowGroupNode() != null ) {
final InternalRuleFlowGroup ruleFlowGroup = activation.getRuleFlowGroupNode().getRuleFlowGroup();
ruleFlowGroup.removeActivation( activation );
}
((EventSupport) workingMemory).getAgendaEventSupport().fireActivationCancelled( activation,
workingMemory );
((InternalAgenda) workingMemory.getAgenda()).decreaseActiveActivations();