I would look into the XWiki-notification mechanism, that tracks page saves and deletes nicely. XWikiDocChangeNotificationInterface and XWikiActionNotificationInterface are the interface names which can also be implemented in Groovy (I have one page that does both) and which you register with xwiki.getNotificationManager().addGeneralRule In my current environment it could not hook automatically at startup, I had to invoke a page right after which is acceptable. I believe the notification system is an unknown glory with which one could implement a zillion intelligent distributed behaviours (I think I would know how to implement an expert system and probably parts of a multi-agent system). Hope it helps. paul Le 8 août 2011 à 10:43, Karel Gardas a écrit :
Hello,
I'm curious if there is any kind of hook or script or code executed when the page from the XWiki is deleted and which might be easily enhanced. I'm asking since during the page creation I also modify external database (page template do this) and if page is deleted the data in external db shall be also deleted to be consistent.
Thanks! Karel _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs