if((getTaskUtils().getStartTime(task) < inventoryPlugin.getOPlanArrivalInTheaterTime()) && (logger.isErrorEnabled())) { logger.error("At " + inventoryPlugin.getOrgName() + "- Projection Task:" + task.getUID() + " item: " + getTaskUtils().getTaskItemName(task) + " has an start time of " + getTimeUtils().dateString(getTaskUtils().getStartTime(task)) + " which is before this orgs arrival time of " + inventoryPlugin.getOPlanArrivalInTheaterTime()); }
  public void updateChangedProjections(Collection tasks) {    LogisticsInventoryPG thePG;    Expansion exp;    Task projSupply, task;    Iterator taskIter = tasks.iterator();    while (taskIter.hasNext()) {      projSupply = (Task)taskIter.next();      if (projSupply.getPlanElement() instanceof Expansion) {	  exp = (Expansion)projSupply.getPlanElement();	  Workflow wf = exp.getWorkflow();	  Enumeration subTasks = wf.getTasks();	  while (subTasks.hasMoreElements()) {	      task = (Task)subTasks.nextElement();	      if (task.getVerb().equals(Constants.Verb.PROJECTWITHDRAW)) {		  thePG = getLogisticsInventoryPG(projSupply);		  if (thePG != null) {		      thePG.removeWithdrawProjection(task);		      if (task.getPlanElement() != null) {			  inventoryPlugin.publishRemove(task.getPlanElement());		      }		      synchronized (projSupply) {			  ((NewTask)task).setPreferences(projSupply.getPreferences());		      }		      inventoryPlugin.publishChange(task);		      //BD Why is this here?  We never removed the task from the wf???		      // commenting this code out		      //((NewWorkflow)wf).addTask(task);		      thePG.addWithdrawProjection(task);		      //inventoryPlugin.publishChange(wf);		  }	      } else if (task.getVerb().equals(Constants.Verb.TRANSPORT)) {		  ((NewTask)task).setPrepositionalPhrases(projSupply.getPrepositionalPhrases());		  inventoryPlugin.publishChange(task);	      }	  }      }    }  }