AnsweredAssumed Answered

alfresco community version: save and reload data via webservice -> delay problem

Question asked by robobot on Apr 22, 2014
Latest reply on Apr 23, 2014 by robobot
hello there,

we still use the old way to communicate in our application with alfresco. sometimes i have to save documents in alfresco and immediately reload them.




//upload documents in a specific folder
WebServiceFactory.getRepositoryService().update(cml);
//try to load the before written documents
nodes = WebServiceFactory.getRepositoryService().get(new Predicate(null,STORE,query));


but the size for nodes is 0 at this point, although everything is technically right and the new content can be seen in alfresco. now, when i try to call


nodes = WebServiceFactory.getRepositoryService().get(new Predicate(null,STORE,query));


in a period between 5 and 30 seconds again, nodes has the expected result.

is there way to make such webservice-queries synchron?

thanks in advance,
steve





Outcomes