[rules-users] inline eval vs comparing booleans
evertp
evert.penninckx at gmail.com
Wed Jun 2 04:15:25 EDT 2010
Hi
In the JBoss Rules 5.0 dev guide I read the statement:
When comparing inline eval with standard eval, we can see that they both
must
return true or false. However, inline eval must be a time-constant
expression.
It is evaluated only once and then it is cached by Drools
1. Can I assume that the caching lasts until the session is disposed of?
2. Is there a difference between the conditions Fact( eval(isValid) ) and
Fact( isValid == true ) or are they evaluated in the same way?
-Evert
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/inline-eval-vs-comparing-booleans-tp864103p864103.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list