/* (non-Javadoc) * @see ieci.tdw.ispac.api.IWorklistAPI#findActiveStages(int) */ public IItemCollection findActiveStages(int nIdProcess) throws ISPACException { IInvesflowAPI invesFlowAPI = context.getAPI(); IProcess iprocess = invesFlowAPI.getProcess(nIdProcess); String resp = ""; if (iprocess.getInt("TIPO") == IPcdElement.TYPE_SUBPROCEDURE) { resp = getRespStringSubProceso(0, context.getStateContext().getPcdId()); } else { resp = getRespString(); } return findActiveStages(nIdProcess, resp); }
/** * Devuelve cierto si el expediente se encuentra en la papelera y falso en caso contrario * * @param numExp NĂºmero de expediente * @return * @throws ISPACException */ public boolean isExpedientSentToTrash(String numExp) throws ISPACException { IProcess exp = getProcess(numExp); return exp.getInt("ESTADO") == TXConstants.STATUS_DELETED; }