예제 #1
0
  @Override
  public Job getJobWithSteps(final Guid jobId) {
    Job job = jobDao.get(jobId);
    if (job != null) {
      Map<Guid, VdcObjectType> jobSubjectEntity =
          jobSubjectEntityDao.getJobSubjectEntityByJobId(jobId);
      job.setJobSubjectEntities(jobSubjectEntity);

      List<Step> steps = stepDao.getStepsByJobId(jobId);
      if (!steps.isEmpty()) {
        job.setSteps(buildStepsTree(steps));
      }
    }
    return job;
  }
예제 #2
0
 @Override
 public Step getStep(Guid stepId) {
   return stepDao.get(stepId);
 }