There is no magic wand.
But for any expression evaluation on the LHS that occurs frequently, ask
yourself whether the data is optimal. For instance: rather than testing
repeatedly whether some date in a fact plus three days is greater than
today, compare that date to a constant date computed once as today
minus three days.
-W
On 14/01/2014, wtang <wtang(a)kana.com> wrote:
that is exactly what I did but I need to call eval(myFunction) and it
will
be
slow since eval() is slow. So there seems to be no way to do "logic" when
I
am in the When part right?
thx!!!
--
View this message in context:
http://drools.46999.n3.nabble.com/Can-When-part-of-DRL-contains-simple-lo...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users