final Activation activation = (Activation) leftTuple.getObject();
// this is to catch a race condition as activations are activated and unactivated on timers
if ( activation instanceof ScheduledAgendaItem ) {
ScheduledAgendaItem scheduled = (ScheduledAgendaItem) activation;
workingMemory.getTimerService().removeJob( scheduled.getJobHandle() );
scheduled.getJobHandle().setCancel( true );
}
if ( activation.isActivated() ) {
activation.remove();
((EventSupport) workingMemory).getAgendaEventSupport().fireActivationCancelled( activation,