Page 1 of 1
Adding custom events to a rule.
PostPosted:Tue Jan 31, 2017 12:57 pm
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 (215.97 KiB) Viewed 1867 times
Re: Adding custom events to a rule.
PostPosted:Wed Feb 01, 2017 5:51 pm
by jllort
You can add, but the source must be modified for it. I can tell you which classes will be affected.
Re: Adding custom events to a rule.
PostPosted:Thu Feb 02, 2017 4:55 am
by PSHREYASHOLLA
jllort wrote:You can add, but the source must be modified for it. I can tell you which classes will be affected.
Yes please. We are using Openkm-6.3.2-community-windows-installer.exe (Windows) for our POC with
https://docs.openkm.com/kcenter/view/sdk4j-1.1/.
Re: Adding custom events to a rule.
PostPosted:Fri Feb 03, 2017 12:04 pm
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 ).