Exemple #1
0
  public IItemCollection getProcesses(String[] numexps) throws ISPACException {

    DbCnt cnt = context.getConnection();
    try {
      WLProcessDAO process = new WLProcessDAO(cnt);
      CollectionDAO colDao = process.loadProcessByNumExps(cnt, numexps);
      return colDao.disconnect();
    } catch (ISPACException ie) {
      throw new ISPACException("Error en WLWorklist:getProcesses(" + numexps.toString() + ")", ie);
    } finally {
      context.releaseConnection(cnt);
    }
  }
Exemple #2
0
 /* (non-Javadoc)
  * @see ieci.tdw.ispac.api.IWorklistAPI#getProcesses(int)
  */
 public IItemCollection getProcesses(int idStagePCD) throws ISPACException {
   String resp = getRespString();
   DbCnt cnt = context.getConnection();
   try {
     return WLProcessDAO.getExps(cnt, resp, idStagePCD).disconnect();
   } catch (ISPACException ie) {
     throw new ISPACException("Error en WLWorklist:getProcesses(" + idStagePCD + ")", ie);
   } finally {
     context.releaseConnection(cnt);
   }
 }
Exemple #3
0
  public IItemCollection findActiveStages(int nIdProcess, String resp) throws ISPACException {

    DbCnt cnt = context.getConnection();
    try {
      return WLProcessDAO.getWorkItems(cnt, resp, nIdProcess).disconnect();
    } catch (ISPACException ie) {
      throw new ISPACException("Error en WLWorklist:findActiveStages(" + nIdProcess + ")", ie);
    } finally {
      context.releaseConnection(cnt);
    }
  }