Page 1 of 1

Event Only On Document Change

PostPosted:Wed Sep 26, 2012 11:16 am
by pmbsa
Hi, I am trying to find a way to listen for an even when a document is changed in any way .I would like to trigger a process to interrogate the document and extract data. I can implement on Document_Change event but that is fired every time a user selects a different document which is way over the top for what I am looking to do. It only need to happen if the document content changes of might have changed (upload or checkin).

Any pointers would be appreciated.

thanks
Paul

Re: Event Only On Document Change

PostPosted:Wed Sep 26, 2012 6:26 pm
by jllort
Well in DirectDocument module ( method create )
http://doxygen.openkm.com/5.1.x/de/ddc/ ... odule.html
We make some calls like BaseScriptingModule.checkScripts(session, documentNode, documentNode, "CHECKIN_DOCUMENT");

Then with scripting can intercept it take a look here http://wiki.openkm.com/index.php/Scripting