Hello,<br><br>I'm using Drools 4.0M3. Several of the objects in our object model take advantage of generics. I was able to utilize generics in the consequences by setting the Java language level to 1.5 in the PackageBuilderConfiguration, however I would also like to optimize my rule activations by using the concrete types in the conditions. I'm assuming this is not currently supported since I get the following error when I try to specify the concrete type in the condition:
<br>mismatched token: [@345,1242:1242='<',<78>,30:15]; expecting type LEFT_PAREN[30,45]<br><br>My working rule uses the following syntax:<br>rule "Test Generics"<br> when<br> Span () #
4.0: Can we use concrete type Span<Integer>?<br> then<br> System.out.println("RULE: Matched Span()");<br>end<br><br>I would like to be able to specify the concrete type like this:<br>rule "Test Generics 2"
<br>
when<br>
Span<Integer> ()<br>
then<br>
System.out.println("RULE: Matched Span<Integer>()");<br>
end<br><br>Our object model uses the generic type "Span" heavily. I am hoping that I will be able to reduce the number of rule activations by specifying the concrete type in the condition.<br><br>Any chance this will be available in the
4.0 general release?<br><br>Thanks!<br>Emily<br>