[rules-users] generics / for each loop / using Java 1.5++ features in Rules Definition

Mark Proctor mproctor at codehaus.org
Mon Dec 29 09:30:25 EST 2008


Trägenap wrote:
> Hi,
>
> a) it is possible to use generics in function definition?
>
>
> function doSomething(ArrayList<Customer> alCustomers) {
>     // do it
> }
>
> doesnt work, I always retrieve Function Compilation error.
> "<" Character
no, we need to update the antlr parser to accept generics in the 
parameters. Or someone needs to submit a patch :)
>
> b) it is possible to use for each loop in DRL?
>
> for (Customer cust : alCustomers) {
>     // do something more
> }
>
> I´am using Janino to parse+compile.
Janino does not support generics, only JDT does.
>
> Thanks for advice.
> Thorsten
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>





More information about the rules-users mailing list