Re: Groovy file as a service

2010-04-14 Thread Joe Eckard
Take a look at /framework/service/src/org/ofbiz/service/engine/ GroovyEngine.java... all you need to do to is create a map called "result" in your groovy script and put your OUT parameters there. The error below is just a type mismatch... groovy strings in with variables in them (${ex}) are

Re: Groovy file as a service

2010-04-14 Thread Kranti Agrawal
Can you please give some examples of groovy services which return a List? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com On Wed, Apr 14, 2010 at 7:53 PM, Robert Morley wrote: > We had a period of time where people wrote some services in groovy. > However, in our Ob

Re: Groovy file as a service

2010-04-14 Thread Robert Morley
We had a period of time where people wrote some services in groovy. However, in our Obiz code we report the same error as what is listed here (with testGroovy). The groovy services we currently have in play (for the most part) have no OUT parameters and the ones that do return a GenericEn

Re: Groovy file as a service

2010-04-14 Thread Kranti Agrawal
gt;> hope following code will help you. >>> >>> >> invoke="ShowProductionRun.groovy"/> >>> >>> Thanks and Regards >>> Brajesh Patel >>> >>> Kranti Agrawal wrote: >>> >>>> Hi, >>>> >>>> Can I call a groovy file as a service? >>>> >>>> Regards, >>>> Kranti Agrawal >>>> Student, IIIT Bangalore >>>> krantiagrawal.blogspot.com >>>> >>> >> >

Re: Groovy file as a service

2010-04-14 Thread Kranti Agrawal
; invoke="ShowProductionRun.groovy"/> >> >> Thanks and Regards >> Brajesh Patel >> >> Kranti Agrawal wrote: >> >>> Hi, >>> >>> Can I call a groovy file as a service? >>> >>> Regards, >>> Kranti Agrawal >>> Student, IIIT Bangalore >>> krantiagrawal.blogspot.com >>> >> >

Re: Groovy file as a service

2010-04-14 Thread Jacques Le Roux
Note that an event is not a service though... Jacques Brajesh Patel wrote: Hi Kranti, hope following code will help you. Thanks and Regards Brajesh Patel Kranti Agrawal wrote: Hi, Can I call a groovy file as a service? Regards, Kranti Agrawal Student, IIIT Bangalore

Re: Groovy file as a service

2010-04-14 Thread Brajesh Patel
Hi Kranti, hope following code will help you. invoke="ShowProductionRun.groovy"/> Thanks and Regards Brajesh Patel Kranti Agrawal wrote: Hi, Can I call a groovy file as a service? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com

Groovy file as a service

2010-04-13 Thread Kranti Agrawal
Hi, Can I call a groovy file as a service? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com