[xwiki-users] EventListener automatic start - is it possible?
In the XWiki existing great technology - custom EventListeners, which can execute, for example, on 'save page' event some script. Existing some nice examples of using this technology: http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+U... http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Object+with+Cont... But, in the past, problem was, that your EventListeners cannot automatically start (for example if application server restarted). I know right now only one 'trick' - right a scheduler job, which every 5 minutes restarts EventListener. Here - http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial existing example of such job, but: 1) this is like a 'trick' - not a normal solution 2) existing troubles of writing such jobs for not qualified users (like me :) ) My question - at this moment, at the end of 4.x cycle, existing more comfortable solution of this problem? If not - do you have (this is question for developers) plans for the future to give for the users some instrument which can do it easy? -- Thanks beforehand! Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/EventListener-automatic-start-is-it-possib... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Jan 17, 2013, at 10:36 AM, Eugen Colesnicov <[email protected]> wrote:
In the XWiki existing great technology - custom EventListeners, which can execute, for example, on 'save page' event some script. Existing some nice examples of using this technology: http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+U... http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Object+with+Cont...
But, in the past, problem was, that your EventListeners cannot automatically start (for example if application server restarted). I know right now only one 'trick' - right a scheduler job, which every 5 minutes restarts EventListener. Here - http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial existing example of such job, but: 1) this is like a 'trick' - not a normal solution 2) existing troubles of writing such jobs for not qualified users (like me :) )
My question - at this moment, at the end of 4.x cycle, existing more comfortable solution of this problem? If not - do you have (this is question for developers) plans for the future to give for the users some instrument which can do it easy?
There is, see http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Object+with+Cont... The other option is to write it in Java too. So to summarize, the recommended solution is to write listeners in Java. The next best solution is to use a Wiki Component: http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiComponent+Module Thanks -Vincent
Thanks, but unfortunately this is so hard for me ... (I am not a programmer). Maybe in the future, will be possible to introduce this in class structure? For example, like how was introduced special type of a class property - which calculates from another properties. Right now it is enough only for easy situations. For me, XWiki classes and properties looks like tables and fields in database. In Oracle I can define calculated field, but also existing possibility to write view - which presents as independent DB-object, but "linked" according to script, to the base table or tables. Maybe will be great to make "looks like" functionality to XWiki. This is will give to XWiki fully-customization possibilities of application creation! -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/EventListener-automatic-start-is-it-possib... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Jan 17, 2013, at 11:52 AM, Eugen Colesnicov <[email protected]> wrote:
Thanks, but unfortunately this is so hard for me ... (I am not a programmer). Maybe in the future, will be possible to introduce this in class structure?
Yes, what I'd like to have is a feature that makes it easy to register event listeners in wiki pages (similar to wiki macros). Anca worked on this in a hackathon but I don't know if she's shared her application on extensions.xwiki.org Anca? Thanks -Vincent
For example, like how was introduced special type of a class property - which calculates from another properties. Right now it is enough only for easy situations.
For me, XWiki classes and properties looks like tables and fields in database. In Oracle I can define calculated field, but also existing possibility to write view - which presents as independent DB-object, but "linked" according to script, to the base table or tables. Maybe will be great to make "looks like" functionality to XWiki. This is will give to XWiki fully-customization possibilities of application creation!
-- Best regards Eugen Colesnicov
On 02/08/2013 05:40 PM, Vincent Massol wrote:
On Jan 17, 2013, at 11:52 AM, Eugen Colesnicov<[email protected]> wrote:
Thanks, but unfortunately this is so hard for me ... (I am not a programmer). Maybe in the future, will be possible to introduce this in class structure? Yes, what I'd like to have is a feature that makes it easy to register event listeners in wiki pages (similar to wiki macros).
Anca worked on this in a hackathon but I don't know if she's shared her application on extensions.xwiki.org
Anca?
No, we didn't share it, it was really a hack, and in any case, we had only added listeners for the save and edit event. I think app started event needs to be carefully handled though, because we need to take into account the possibility of this event being launched before the registering of the event listeners defined in pages (because those are registered at the wiki ready event). So it's a bit more to hack to do it. I should get myself to check that code these days and publish it somewhere. Anca
Thanks -Vincent
For example, like how was introduced special type of a class property - which calculates from another properties. Right now it is enough only for easy situations.
For me, XWiki classes and properties looks like tables and fields in database. In Oracle I can define calculated field, but also existing possibility to write view - which presents as independent DB-object, but "linked" according to script, to the base table or tables. Maybe will be great to make "looks like" functionality to XWiki. This is will give to XWiki fully-customization possibilities of application creation!
-- Best regards Eugen Colesnicov
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Anca Luca -
Eugen Colesnicov -
Vincent Massol