What version of Drools are you using?

I tried with 5.2 (uploaded to Guvnor, to be honest, and viewed the source) and it looks OK:-

1.| #generated from Decision Table
2.|# rule values at B10, header at B5
3.|rule "_10"
4. |    when
5.|        person : Person(age > 18 && < 65)
6.|    then
7.|         person.setScore(100);
8.|        System.out.println("Accepted");
9.|end


On 29 June 2011 09:28, GrooV <m.breemans@everest.nl> wrote:
Hi,

Im currently trying to get a small decision table working with a range
operator using a simple Person object to check if its age fits within the
range. It doesn’t matter what I use and I tried almost all possibility’s I
find online:

•       Age > $1, age < $2
•       Age > $1 && < $2
•       Age > $1 && age < $2
•       Age > $1, < $2

None of em seem to work. But when I try age > $1 of age > $1 || < $2 it
works. I can’t see what im doing wrong since most tutorials I follow use
this operator to check if an age fits in the range.

I attached the Excel sheet to this post.

Thanks in advance,

Matthijs

http://drools.46999.n3.nabble.com/file/n3120750/CheckAccepted.xls
CheckAccepted.xls

--
View this message in context: http://drools.46999.n3.nabble.com/Range-operator-in-Excel-Decision-Table-tp3120750p3120750.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users