Hola,Intento mover un contenido de un espacio a otro con el siguiente código:
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);
y obtengo el siguiente error: org.alfresco.error.AlfrescoRuntimeException: 02100006 Exception in Transaction.Puede alguien ayudarme a detectar que es lo que hago mal?Gracias y un saludo.