[rules-users] named consequences for an or...
Wolfgang Laun
wolfgang.laun at gmail.com
Mon Jan 20 15:46:55 EST 2014
On 20/01/2014, pmander <paul.s.mander at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list