Refresh document in workspaces when added from automation client
Hi at all,
I have a problem with nuxeo automation client used for adding new documents… When i add new documents with blob attached (like in the example: http://doc.nuxeo.com/display/NXDOC/Using+Nuxeo+Automation+Client) i can't see new documents added in the user interface, the only way i can use is to logoff and login again and the documents appears… I need to call some other operation to refresh and show new content? I have tried to use
nuxeosession.newRequest("Seam.Refresh").setInput(new PathRef(pathtoworkspace)).execute();
or
nuxeosession.newRequest("Seam.Refresh").execute();
But every time throw exception
Caused by: org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling$RemoteThrowable: Failed to invoke operation Seam.Refresh
P.s. Nuxeo is DM 5.5
0 votes
1 answers
2148 views
When I create Folder Using Automation, then i tried to fetch the same folder at other place after adding, it is not returning folder. when i try after 1 or 2 minute it works. so is there any cache or something we need to clear to appear that folder immediately ? I am using LTS 2016.