[rules-users] enum Support

John Howard john.howard9 at btinternet.com
Tue Apr 10 06:10:52 EDT 2007


Hi,

I have the following rule:

dh : DealtHand(seat == Seat.NORTH)

Seat is a Java 5 enum.  When I trace through the code it appears that 
Seat.NORTH gets changed to 'NORTH' for the comparison which fails the test.

I have Java Language Level set to 1.5.

Is this type of construct supported in DROOLS.

Thanks,

John




More information about the rules-users mailing list