WorkflowEdge edge = (WorkflowEdge)j.next(); edges.add(edge);
Object port = j.next(); Iterator k = edges(port); while(k.hasNext()) { WorkflowEdge edge = (WorkflowEdge)k.next(); ResultDescriptor descriptor = (ResultDescriptor)edge.getUserObject(); edges.put(new Integer(descriptor.getId()), edge); }
  public Collection getActivitiesList()  {    List l = new ArrayList();    l.addAll(initialActions);    l.addAll(stepCells);    l.addAll(splitCells);    l.addAll(joinCells);    Iterator i = l.iterator();    Set edges = new HashSet();    while(i.hasNext())    {      WorkflowCell cell = (WorkflowCell)i.next();      //we know every edge has to start somewhere, so we don't need to check to cells      Iterator j = edges(cell.getFirstChild());      while(j.hasNext())      {        WorkflowEdge edge = (WorkflowEdge)j.next();        edges.add(edge);      }    }    l.addAll(edges);    return l;  }