Hi,

have you tried something like
xwiki.getDocument('Space.YourScript').getRenderedContent() ?

JV.

On Sat, Oct 23, 2010 at 11:26 PM, Eugen Colesnicov
<ecolesni...@gmail.com> wrote:
>
> Hi colleagues!
>
> I need some help for the Scheduler.
> I already have some not small script in a velocity. This script select some
> pages with complex conditions (hql),  make some calculations and sending
> emails. Now this script is working when I simply open it page (where script
> is placed).
>
> I need to make automatic schedule for this script (for example - every day).
> Unfortunately, scheduler scripts permit only groovy scripts ... Also,
> problem for me - I dont't now groovy at all (velocity - so-so) and I am not
> a programmer. For me - groovy learning is difficult (in any case - not
> quickly).
>
> My question - is any possibility to use my velocity script without total
> rewriting for groovy? Maybe I can write groovy script with redirection for
> my page with velocity script? Maybe is it possible to include code of one
> scripting language in another?
>
> If is not (only need to totally rewrite script to grovvy) can somebody can
> help me in this operation? I attached my original velocity script (it's
> working fine).
>
> http://xwiki.475771.n2.nabble.com/file/n5666438/velocity_script.txt
> velocity_script.txt
>
> --
> Thanks beforehand
> Eugen Colesnicov
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Using-Scheduler-issues-groovy-questions-tp5666438p5666438.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to