logger.info(getAgentIdentifier() + " - redoTasks: Plan Element to be removed and filled."); publishRemove(t.getPlanElement()); handleTask(t, subscriptionResults);
PlanElement prevPE = t.getPlanElement();   if (orgActivityInThePast (subscriptionResults)) { if (isInfoEnabled()) { logger.info(getAgentIdentifier() + " - redoTasks: not replanning " + t.getUID() + " because it's in the past."); } } else { if (isInfoEnabled()) { logger.info(getAgentIdentifier() + " - redoTasks: Plan Element removed from " + t.getUID() + " and replanned."); }  publishRemove(prevPE); handleTask(t, subscriptionResults);   if ((t.getPlanElement () == null) || (t.getPlanElement () == prevPE)) { logger.warn (getAgentIdentifier() + " - redoTasks: didn't replan " + t.getUID () + " properly, PE not updated."); } }
  public void redoTasks() {    SubscriptionResults subscriptionResults = checkSubscriptions();    if (subscriptionResults != null) {      Enumeration enum = myInputTaskCallback.getSubscription().elements();      boolean alreadyFound = false;      while (enum.hasMoreElements()) {          if (alreadyFound)              logger.warn(getAgentIdentifier() + " - more than one determine requirements task!");          Task t = (Task) enum.nextElement();          alreadyFound = true;          if (t.getPlanElement() == null) {              logger.info(getAgentIdentifier() + " - redoTasks: Null Plan Element to be filled");              handleTask(t, subscriptionResults);          }          else {              logger.info(getAgentIdentifier() + " - redoTasks: Plan Element to be removed and filled.");              publishRemove(t.getPlanElement());              handleTask(t, subscriptionResults);          }      }    }