On Wed, 2010-02-24 at 11:20 +0100, Nils Breunese wrote: > Rakesh Vidyadharan wrote: > > > I used the standard scheduler module, but implemented the job itself in > > groovy. Using the standard module does not preclude the use of groovy > > (or any other scripting environment). > > After adding magnolia-module-scheduler to my build I see Configuration > > Scheduler (which brings me to config:/scheduler/config/jobs) where three > disabled example jobs are configured. I see a job has a node called > 'command' which apparently refers to some code, but I don't know where I > can find that code or where I should place my own code so it can be > executed by the scheduler. Could you (or anyone else on this list) > explain how I can add my own commands? I haven't been able to find any > documentation on this module.
Sample of command creation: http://weblogs.java.net/blog/rah003/archive/2010/02/21/tweet-magnolia-tweet As for configuration, just create node with the name of the command in config:/modules/<yourmodule>/commands and give it node data "class" with value being fully qualified name of the command class. >From scheduler you then refer to your command by the name of the command node. Optionally you can have extra subfolder under the commands node that is then referred to as "catalog" (make sure the catalog of given name doesn't exist in some other module commands). HTH, Jan > > Nils. > > De informatie vervat in deze e-mail en meegezonden bijlagen is uitsluitend > bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informatie > bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking > van deze informatie aan derden is voorbehouden aan geadresseerde. De VPRO > staat niet in voor de juiste en volledige overbrenging van de inhoud van een > verzonden e-mail, noch voor tijdige ontvangst daarvan. > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
