WorkflowEdge edge = (WorkflowEdge)k.next(); ResultDescriptor descriptor = (ResultDescriptor)edge.getUserObject();
ResultEdge edge = (ResultEdge)k.next(); ResultDescriptor descriptor = edge.getDescriptor();
  public Collection getActivitiesList()  {    List l = new ArrayList();    l.addAll(initialActions);    l.addAll(stepCells);    l.addAll(splitCells);    l.addAll(joinCells);    Iterator i = l.iterator();    Map edges = new HashMap();    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 = cell.getChildren().iterator();      while(j.hasNext())      {        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);        }      }    }    l.addAll(edges.values());    return l;  }