Re: [rules-users] Unable to perform simple primitive operations

2007-07-18 Thread Natraj Gudla
Mark, We might not be using 4.0 so soon. The business is still to make a decision on that. In these scenarios what is way out to effectively code such kind of a scenarios. If i make all my class attributes to be objects ( Double), then in the rule conditions i cannot use something like 1. attri

Re: [rules-users] Unable to perform simple primitive operations

2007-07-18 Thread Mark Proctor
I believe all your requests are in 4.0, give that a try. For 2.0.6 you'll have to unwrap > (bpl.doubleValue() * 1.5 ) Mark Natraj Gudla wrote: Hi All, I am using Drools 3.0.6 and unable to perform some simple form of multiplication. I want to compare an object field with another field multi

Re: [rules-users] Unable to perform simple primitive operations

2007-07-18 Thread Edson Tirelli
Natraj, What you described are all limitations of drools 3. They are all solved now in drools 4, but not much we can do in 3. []s Edson 2007/7/18, Natraj Gudla <[EMAIL PROTECTED]>: Hi All, I am using Drools 3.0.6 and unable to perform some simple form of multiplication. I want to com

[rules-users] Unable to perform simple primitive operations

2007-07-18 Thread Natraj Gudla
Hi All, I am using Drools 3.0.6 and unable to perform some simple form of multiplication. I want to compare an object field with another field multiplied by a factor. * rule* "*Calculate* Business profit,1" *when **EMIAgainstProperty* ( bp1 : businessProfit1 ) emi : *EMIAgainstProperty* ( busi