private String getTableJobId(Job j) { String id = j.getName().replace(".", "-"); Job job = j; while ((job = job.getDependency()) != null) { id = job.getName().replace(".", "-") + "." + id; } return id; }
/** * Find top level jobs. * * @param unittype the unittype * @return the list */ private List<Job> findTopLevelJobs(Unittype unittype) { Job[] jobs = unittype.getJobs().getJobs(); List<Job> topLevel = new ArrayList<Job>(); for (Job j : jobs) { if (j.getDependency() == null) topLevel.add(j); } return topLevel; }