On 20/01/2014, pmander <paul.s.man...@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-tp4027775p4027777.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users