2008/9/18 raulvk.soa <[EMAIL PROTECTED]>:
> Hi,
>
> I need to use a Groovy Processor but I only seem to be able to find support
> for Predicates and Expressions on the docs.
>
> Is it possible to use Groovy Processors Out-of-the-box, by referencing
> external .groovy files? If so, how exactly should the process method be
> implemented?
>
> What I am after is actually the GPath XML processing using the XmlSlurper
> class. It looks like a very agile way to do custom validation on an XML.

We've no explicit support yet for invoking a script as a processor; we
should add that.

In the meantime, if you compile your groovy on the classpath you can
just refer to the Groovy class in the bean...

  from("....").bean(SomeClass.class);

We should maybe have a script endpoint?

  from("...").to("groovy:foo/bar/Whatnot.groovy");

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to