Today, After I updated the workflowid of a document, I didn't get the workflowid of the document because after update, the doucment I got from
documentManager is cached, not searched from the database. In this situation, how to get the latest document information? Before get the doucment
from the documentManagement, remove the doucment cache form the documentCache.
Here is the Java Code.
DbDocumentManager documentManager = (DbDocumentManager) JiveApplication.getContext().getDocumentManager();
documentManager.getDocumentCache().remove(caseLink.getDocID());
DocumentManager is an interface and class DocumentManagerProxy implements it.
ExtendedDocumentManager is an interface and extends DocumentManager. The DbDocumentManager implements ExtendedDocumentManager interface.
About Cache, please refer to http://www.jivesoftware.com/jivespace/docs/DOC-4060