[rules-users] Accepted idiom for binding variable to restriction?

Evert Penninckx evert.penninckx at gmail.com
Thu Jun 3 10:26:32 EDT 2010



Edson Tirelli-3 wrote:
> 
>    For simple constraints like this, using nested accessors is lighter and
> simpler than using from.
> 

Phrases like this should go in a drools best practice sections :-)  Does
something like that exist?

When you read the docs, you get the impression that "from" is the only way
to access objects not explicitly inserted into the working memory. Okay, it
seems logical that you can also evaluate them with an explicit or implicit
(read invisible) "eval". But for me, it isn't really clear when to use an
eval, usually promoted as less efficient, and when to use the "from"
operator.



Greetz

Evert
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Accepted-idiom-for-binding-variable-to-restriction-tp863400p867757.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list