Example #1
0
 /**
  * Schedule an agenda item for delayed firing.
  *
  * @param item The item to schedule.
  */
 public void scheduleItem(final ScheduledAgendaItem item, final InternalWorkingMemory wm) {
   this.scheduledActivations.add(item);
   item.setEnqueued(true);
   if (item.getPropagationContext().getReaderContext() == null) {
     // this is not a serialization propagation, so schedule it
     // otherwise the timer will be correlated with this activation later during the
     // deserialization of timers
     Scheduler.scheduleAgendaItem(item, this, wm);
   }
 }