public List<List<String>> rows() {
    try {
      List<List<String>> results = new ArrayList<>();
      for (BaseWork baseWork : topSortedWork) {
        String vertexName = baseWork.getName();
        VertexProgress progress = progressCountsMap.get(vertexName);
        if (progress != null) {
          // Map 1 .......... container  SUCCEEDED      7          7        0        0       0       0
          // TODO: can we pass custom things thru the progress?
          results.add(
            Arrays.asList(
              getNameWithProgress(vertexName, progress.succeededTaskCount, progress.totalTaskCount),
              getMode(baseWork),
              progress.vertexStatus(vertexStatusMap.get(vertexName)),
              progress.total(),
              progress.completed(),
              progress.running(),
              progress.pending(),
              progress.failed(),
              progress.killed()
            )
          );
        }
      }
      return results;
    } catch (Exception e) {
      console.printInfo(
          "Getting  Progress Bar table rows failed: " + e.getMessage() + " stack trace: " + Arrays
              .toString(e.getStackTrace())
      );
    }
    return Collections.emptyList();
  }
public List<List<String>> rows() {
    try {
      List<List<String>> results = new ArrayList<>();
      for (BaseWork baseWork : topSortedWork) {
        String vertexName = baseWork.getName();
        VertexProgress progress = progressCountsMap.get(vertexName);
        if (progress != null) {
         
         
          results.add(
            Arrays.asList(
              getNameWithProgress(vertexName, progress.succeededTaskCount, progress.totalTaskCount),
              getMode(baseWork),
              progress.vertexStatus(vertexStatusMap.get(vertexName)),
              progress.total(),
              progress.completed(),
              progress.running(),
              progress.pending(),
              progress.failed(),
              progress.killed()
            )
          );
        }
      }
      return results;
    } catch (Exception e) {
      console.printInfo(
          "Getting  Progress Bar table rows failed: " + e.getMessage() + " stack trace: " + Arrays
              .toString(e.getStackTrace())
      );
    }
    return Collections.emptyList();
  }
public list<list<string>> rows() { try { list<list<string>> results = new arraylist<>(); for (basework basework : topsortedwork) { string vertexname = basework.getname(); vertexprogress progress = progresscountsmap.get(vertexname); if (progress != null) { results.add( arrays.aslist( getnamewithprogress(vertexname, progress.succeededtaskcount, progress.totaltaskcount), getmode(basework), progress.vertexstatus(vertexstatusmap.get(vertexname)), progress.total(), progress.completed(), progress.running(), progress.pending(), progress.failed(), progress.killed() ) ); } } return results; } catch (exception e) { console.printinfo( "getting progress bar table rows failed: " + e.getmessage() + " stack trace: " + arrays .tostring(e.getstacktrace()) ); } return collections.emptylist(); }