Exemple #1
0
  public int countBatchTasks(String resp) throws ISPACException {

    DbCnt cnt = context.getConnection();
    try {
      return WLBatchTaskDAO.countBatchTasks(cnt, resp);
    } catch (ISPACException ie) {
      throw new ISPACException("Error en WLWorklist:getTasksPcd()", ie);
    } finally {
      context.releaseConnection(cnt);
    }
  }
Exemple #2
0
  public IItemCollection getBatchTasks() throws ISPACException {

    String resp = getRespString();
    DbCnt cnt = context.getConnection();
    try {
      return WLBatchTaskDAO.getBatchTasks(cnt, resp).disconnect();
    } catch (ISPACException ie) {
      throw new ISPACException("Error en WLWorklist:getBatchTasks()", ie);
    } finally {
      context.releaseConnection(cnt);
    }
  }
Exemple #3
0
  public IItem getBatchTask(int nIdBatchTask) throws ISPACException {
    DbCnt cnt = null;
    try {
      cnt = mcontext.getConnection();
      IItem ret = WLBatchTaskDAO.getBatchTask(cnt, nIdBatchTask);
      return ret;

    } catch (Exception e) {
      // TODO: handle exception

    } finally {
      mcontext.releaseConnection(cnt);
    }

    // TODO Auto-generated method stub
    return null;
  }