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.
ParentReference parentReference = new ParentReference(); parentReference.setStore(STORE); parentReference.setUuid(node); // Nodo del contenido parentReference.setChildName(fileName); //Nombre del contenido parentReference.setAssociationType(Constants.ASSOC_CONTAINS); parentReference.setPath(getXpathSpaceName(properties.getProperty("efactura_processed"))); // espacio destino Reference sourceRef = new Reference(); sourceRef.setStore(STORE); sourceRef.setUuid(node); // Nodo del contenido (otra vez) CMLMove cmlmove = new CMLMove(); cmlmove.setTo(parentReference); cmlmove.setWhere(new Predicate(new Reference[]{sourceRef}, null, null)); CML cml = new CML(); cml.setMove(new CMLMove[]{cmlmove}); UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);