• Event Only On Document Change

  • He we will discuss about how to make customization and improvement to the OpenKM source code.
He we will discuss about how to make customization and improvement to the OpenKM source code.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #18538  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
 #18543  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

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.