parent = (Task)taskIter.next(); pe = parent.getPlanElement(); if ((pe != null) && (pe instanceof Expansion)) { enum = ((Expansion)pe).getWorkflow().getTasks(); while (enum.hasMoreElements()) { aTask = (Task)enum.nextElement(); if (aTask.getVerb().equals(Constants.Verb.WITHDRAW)) { thePG = getLogisticsInventoryPG(aTask); if (thePG != null) { thePG.removeWithdrawRequisition(aTask); } break; } }
aTask = (Task)taskIter.next(); thePG = getLogisticsInventoryPG(aTask); if (thePG != null) { thePG.removeWithdrawRequisition(aTask);
  public void handleRemovedRequisitions(Collection tasks) {    LogisticsInventoryPG thePG;    Task parent, aTask;    Iterator taskIter = tasks.iterator();    PlanElement pe;    Enumeration enum;    while (taskIter.hasNext()) {      parent = (Task)taskIter.next();      pe = parent.getPlanElement();      if ((pe != null) && (pe instanceof Expansion)) {	enum = ((Expansion)pe).getWorkflow().getTasks();	while (enum.hasMoreElements()) {	  aTask = (Task)enum.nextElement();	  if (aTask.getVerb().equals(Constants.Verb.WITHDRAW)) { 	    thePG = getLogisticsInventoryPG(aTask);	    if (thePG != null) {	      thePG.removeWithdrawRequisition(aTask);	    }	    break;	  }	}      }    }