Re: [rules-users] Trying to compare variables of two objects, not working. (compiles, but not desired result)

2012-04-13 Thread Wolfgang Laun
On 13/04/2012, Vincent Legendre wrote: > Le 13/04/2012 10:46, Wolfgang Laun a écrit : >> 5.3.0 and 5.4.0.Beta2: Comparing int and Integer fails unless the >> traditional (up to 5.1.1) "return value" construct - parentheses >> around the expression - is used: >> >> lineItemId == ($lineItem.getID(

Re: [rules-users] Trying to compare variables of two objects, not working. (compiles, but not desired result)

2012-04-13 Thread Vincent Legendre
Le 13/04/2012 10:46, Wolfgang Laun a écrit : > 5.3.0 and 5.4.0.Beta2: Comparing int and Integer fails unless the > traditional (up to 5.1.1) "return value" construct - parentheses > around the expression - is used: > > lineItemId == ($lineItem.getID()) // OK > lineItemId == ($id) // OK with

Re: [rules-users] Trying to compare variables of two objects, not working. (compiles, but not desired result)

2012-04-13 Thread Wolfgang Laun
E" > À: "Rules Users List" > Envoyé: Jeudi 12 Avril 2012 20:44:41 > Objet: Re: [rules-users] Trying to compare variables of two objects, not > working. (compiles, but not desired result) > > I think (not sure) that the problem comes from the right part of your test

Re: [rules-users] Trying to compare variables of two objects, not working. (compiles, but not desired result)

2012-04-12 Thread Vincent LEGENDRE
t; Envoyé: Jeudi 12 Avril 2012 20:44:41 Objet: Re: [rules-users] Trying to compare variables of two objects,not working. (compiles, but not desired result) I think (not sure) that the problem comes from the right part of your test : $lineItem.ID Try with $lineItem.getID(), or use 'dialec

Re: [rules-users] Trying to compare variables of two objects, not working. (compiles, but not desired result)

2012-04-12 Thread Vincent LEGENDRE
I think (not sure) that the problem comes from the right part of your test : $lineItem.ID Try with $lineItem.getID(), or use 'dialect "mvel"' as rule property You can also bind the id in LineItem and test it in the next pattern : rule "Test" when $lineItem : LineItem( $lineID : ID

Re: [rules-users] Trying to compare variables of two objects, not working. (compiles, but not desired result)

2012-04-12 Thread concordus
-- View this message in context: http://drools.46999.n3.nabble.com/Trying-to-compare-variables-of-two-objects-not-working-compiles-but-not-desired-result-tp3905924p3905933.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ ru