public Long getDays() throws Exception {
    if (getCreate() == null) return null;

    SigaCalendar lIni = new SigaCalendar(getCreate().getTime());
    SigaCalendar lFim = new SigaCalendar(WfDao.getInstance().dt().getTime());
    long l = lFim.getUnixDay() - lIni.getUnixDay();

    return l;
  }
  public Set<Task> getLstGruposIni() {

    return WfDao.getInstance().getTodasAsTarefas(getProcedimentoEscolhido().getName());
  }
 private ProcessDefinition getProcedimentoEscolhido() {
   return WfDao.getInstance().getProcessDefinition(getPdId());
 }
 /**
  * Método utilizado para
  *
  * @param idGrupo
  * @return
  */
 private String getNomeGrupo(Long idGrupo) {
   Task t = WfDao.getInstance().consultar(idGrupo, Task.class, false);
   return t.getName();
 }