As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
List<DatosFactura> contenedor = new ArrayList<DatosFactura>(); String lineafichero = new String(); DatosFactura fact = null; NodeRef nodo = null; // Obtemos a referencia o espacio Mes de Diccionario de Datos String espaciomes = nodoEsp.getName(); logger.info("path del nodo" + nodoEsp.getPath()); logger.info("nombre del espacio mes "+espaciomes); String stringQuery = "+PATH:\""+ nodoEsp.getNodePath().toString()+"/*\""; logger.info("path string query "+stringQuery); StoreRef storeRef_aux = StoreRef.STORE_REF_WORKSPACE_SPACESSTORE; ResultSet results_aux = services.getSearchService() .query(storeRef_aux, SearchService.LANGUAGE_LUCENE, stringQuery); logger.info("resultados de la busqueda " + results_aux.getNodeRefs()); List<NodeRef> documentos = results_aux.getNodeRefs(); logger.info("Numero de documentos encontrados " + documentos.size()); if (!documentos.isEmpty()) { logger.info("Numero de documentos encontrados"+documentos.size()); Iterator<NodeRef> iter = documentos.iterator(); logger.info("iterador "+documentos.iterator()); while (iter.hasNext()) { Node documento = new Node(iter.next()); logger.info("nodo "+documento.getName()); logger.info("fecha "+documento.getProperties().get(FacturaModel.Alf_Fecha).toString()); fact = new DatosFactura( (Date)(documento.getProperties().get(FacturaModel.Alf_Fecha)), documento.getProperties().get(FacturaModel.Alf_CIF).toString(), documento.getProperties().get(FacturaModel.Alf_NumFactura).toString(), documento.getProperties().get(FacturaModel.Alf_Base).toString(), documento.getProperties().get(FacturaModel.Alf_IVA).toString(), documento.getProperties().get(FacturaModel.Alf_Total).toString()); contenedor.add(fact); logger.info("contenedor "+contenedor); } }
10:10:05,312 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Entra a evaluar el espacio10:10:05,312 INFO [org.alfresco.sample.Cierre_Mes_Dialog] path de revisadas +PATH:"/app:company_home/cm:Entrada_Facturas/cm:Revision_Factura/cm:Revisar/*"+TYPE:"{http://www.alfresco.org/model/content/1.0}content"10:10:05,343 INFO [org.alfresco.sample.Cierre_Mes_Dialog] el resultset []10:10:05,343 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Node Type: {http://www.alfresco.org/model/content/1.0}folderNode Properties: {{http://www.alfresco.org/model/content/1.0}name=Agosto, {http://www.alfresco.org/model/content/1.0}creator=admin, {http://www.alfresco.org/model/content/1.0}modified=Thu Sep 10 16:27:26 CEST 2009, {http://www.alfresco.org/model/application/1.0}icon=space-icon-default, {FacturaModel.model}Abierto=true, {http://www.alfresco.org/model/system/1.0}store-protocol=workspace, {http://www.alfresco.org/model/content/1.0}created=Thu Sep 10 16:27:06 CEST 2009, {http://www.alfresco.org/model/system/1.0}store-identifier=SpacesStore, {http://www.alfresco.org/model/content/1.0}title=, {http://www.alfresco.org/model/system/1.0}node-dbid=1074, {http://www.alfresco.org/model/system/1.0}node-uuid=74c0d378-517a-4ee0-b05d-b362abd05b40, {http://www.alfresco.org/model/content/1.0}modifier=admin, {http://www.alfresco.org/model/content/1.0}description=}Node Aspects: [{http://www.alfresco.org/model/application/1.0}uifacets, {http://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/system/1.0}referenceable, {FacturaModel.model}EspacioAbierto]10:10:05,359 INFO [org.alfresco.sample.Cierre_Mes_Dialog] propieadedes del nodeEsp{{http://www.alfresco.org/model/content/1.0}name=Agosto, {http://www.alfresco.org/model/content/1.0}creator=admin, {http://www.alfresco.org/model/content/1.0}modified=Thu Sep 10 16:27:26 CEST 2009, {http://www.alfresco.org/model/application/1.0}icon=space-icon-default, {FacturaModel.model}Abierto=true, {http://www.alfresco.org/model/system/1.0}store-protocol=workspace, {http://www.alfresco.org/model/content/1.0}created=Thu Sep 10 16:27:06 CEST 2009, {http://www.alfresco.org/model/system/1.0}store-identifier=SpacesStore, {http://www.alfresco.org/model/content/1.0}title=, {http://www.alfresco.org/model/system/1.0}node-dbid=1074, {http://www.alfresco.org/model/system/1.0}node-uuid=74c0d378-517a-4ee0-b05d-b362abd05b40, {http://www.alfresco.org/model/content/1.0}modifier=admin, {http://www.alfresco.org/model/content/1.0}description=}10:10:05,359 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Estado del mestrue10:10:06,859 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Entra a evaluar el espacio10:10:06,859 INFO [org.alfresco.sample.Cierre_Mes_Dialog] path de revisadas +PATH:"/app:company_home/cm:Entrada_Facturas/cm:Revision_Factura/cm:Revisar/*"+TYPE:"{http://www.alfresco.org/model/content/1.0}content"10:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] el resultset []10:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Node Type: {http://www.alfresco.org/model/content/1.0}folderNode Properties: {{http://www.alfresco.org/model/content/1.0}name=Agosto, {http://www.alfresco.org/model/content/1.0}creator=admin, {http://www.alfresco.org/model/content/1.0}modified=Thu Sep 10 16:27:26 CEST 2009, {http://www.alfresco.org/model/application/1.0}icon=space-icon-default, {FacturaModel.model}Abierto=true, {http://www.alfresco.org/model/system/1.0}store-protocol=workspace, {http://www.alfresco.org/model/content/1.0}created=Thu Sep 10 16:27:06 CEST 2009, {http://www.alfresco.org/model/system/1.0}store-identifier=SpacesStore, {http://www.alfresco.org/model/content/1.0}title=, {http://www.alfresco.org/model/system/1.0}node-dbid=1074, {http://www.alfresco.org/model/system/1.0}node-uuid=74c0d378-517a-4ee0-b05d-b362abd05b40, {http://www.alfresco.org/model/content/1.0}modifier=admin, {http://www.alfresco.org/model/content/1.0}description=}Node Aspects: [{http://www.alfresco.org/model/application/1.0}uifacets, {http://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/system/1.0}referenceable, {FacturaModel.model}EspacioAbierto]10:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] propieadedes del nodeEsp{{http://www.alfresco.org/model/content/1.0}name=Agosto, {http://www.alfresco.org/model/content/1.0}creator=admin, {http://www.alfresco.org/model/content/1.0}modified=Thu Sep 10 16:27:26 CEST 2009, {http://www.alfresco.org/model/application/1.0}icon=space-icon-default, {FacturaModel.model}Abierto=true, {http://www.alfresco.org/model/system/1.0}store-protocol=workspace, {http://www.alfresco.org/model/content/1.0}created=Thu Sep 10 16:27:06 CEST 2009, {http://www.alfresco.org/model/system/1.0}store-identifier=SpacesStore, {http://www.alfresco.org/model/content/1.0}title=, {http://www.alfresco.org/model/system/1.0}node-dbid=1074, {http://www.alfresco.org/model/system/1.0}node-uuid=74c0d378-517a-4ee0-b05d-b362abd05b40, {http://www.alfresco.org/model/content/1.0}modifier=admin, {http://www.alfresco.org/model/content/1.0}description=}10:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Estado del mestrue10:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Entra en producir fichero10:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] path del nodo/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Entrada_Facturas/{http://www.alfresco.org/model/content/1.0}Revision_Factura/{http://www.alfresco.org/model/content/1.0}Aprobadas/{cm}A_2009/{http://www.alfresco.org/model/content/1.0}Agosto10:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] path string query +PATH:"/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Entrada_Facturas/{http://www.alfresco.org/model/content/1.0}Revision_Factura/{http://www.alfresco.org/model/content/1.0}Aprobadas/{cm}A_2009/{http://www.alfresco.org/model/content/1.0}Agosto"10:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] resultados de la busqueda org.alfresco.repo.security.permissions.impl.acegi.FilteringResultSet@8d1c7610:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Numero de documentos encontrados110:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] Numero de documentos encontrados110:10:06,890 INFO [org.alfresco.sample.Cierre_Mes_Dialog] iterador java.util.AbstractList$Itr@47b87f10:10:06,906 INFO [org.alfresco.sample.Cierre_Mes_Dialog] nodo f952affe-8146-409e-a56f-e52daf4ef4cf10:10:06,906 ERROR [org.alfresco.web.ui.common.Utils] Unable to delete File due to system error: nulljava.lang.NullPointerException
nodo f952affe-8146-409e-a56f-e52daf4ef4cf
logger.info("nodo "+documento.getName());
10:10:06,906 INFO [org.alfresco.sample.Cierre_Mes_Dialog] nodo f952affe-8146-409e-a56f-e52daf4ef4cf
logger.info("fecha "+documento.getProperties().get(FacturaModel.Alf_Fecha).toString());
logger.info("nodo "+documento.getName());
String stringQuery = "+PATH:\""+ nodoEsp.getNodePath().toString()+"/*\"";
"+PATH:\"/app:company_home/cm:Entrada_Facturas/cm:Revision_Factura/cm:Aprobadas/cm:A_2007/cm:Julio";
logger.info("path del nodo" + nodoEsp.getPath()); logger.info("nombre del espacio mes "+espaciomes); String stringQuery = "+PATH:\""+ nodoEsp.getNodePath().toString()+"/*\""; logger.info("path string query "+stringQuery); StoreRef storeRef_aux = StoreRef.STORE_REF_WORKSPACE_SPACESSTORE; ResultSet results_aux = services.getSearchService() .query(storeRef_aux, SearchService.LANGUAGE_LUCENE, stringQuery);
path string query +PATH:"/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Entrada_Facturas/{http://www.alfresco.org/model/content/1.0}Revision_Factura/{http://www.alfresco.org/model/content/1.0}Aprobadas/{http://www.alfresco.org/model/content/1.0}A_2007/{http://www.alfresco.org/model/content/1.0}Julio/*"