• Adding custom events to a rule.

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #43134  by PSHREYASHOLLA
 
Can we add our new custom events to a rule?

Our requirement is to call a event, whenever a document is deleted.
EventRules.png
EventRules.png (215.97 KiB) Viewed 1679 times
 #43146  by jllort
 
You can add, but the source must be modified for it. I can tell you which classes will be affected.
 #43161  by jllort
 
Take a look at:
AutomationRule.java ( must create the new event )
AutomationServlet.java ( must add the event )
DbDocumentModule.java ( must change delete method, go into line 907 to get inspired how do it, it's quite easy ).

Ththen register new event in database is exactly the same idea than the others ( take a look at automation.sql file ).

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.