@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; }
@Override public Step getStep(Guid stepId) { return stepDao.get(stepId); }