On 20/01/2014, pmander <paul.s.mander(a)gmail.com> wrote:
I could do this:
when
$t : Transaction((org == "us") || (expensive() == "111"))
then
insert(new Record($t, 1));
end
Yes, that takes care of the unwanted duplication.
If org is indeed equal to "us" is it guaranteed that
expensive() doesn't
get
executed?
You can test this quite easily: add a print to expensive().
-W
--
View this message in context:
http://drools.46999.n3.nabble.com/named-consequences-for-an-or-tp4027775p...
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