final List<String> list = new ArrayList<String>();
workingMemory.setGlobal( "list",
list );
final List<Activation> activations = new ArrayList<Activation>();
AgendaEventListener listener = new DefaultAgendaEventListener() {
public void activationCancelled(ActivationCancelledEvent event,
WorkingMemory workingMemory) {
activations.add( event.getActivation() );
}
};