[rules-users] Same rules applies twice

Wolfgang Laun wolfgang.laun at gmail.com
Mon Nov 8 05:29:56 EST 2010


If there are two Result() facts which aren't identical and you want to
match only one in your rule you'll have to
(a) provide a distinguishing restriction
(b) use some information saying that the rule has already fired for a
certain resultId.

For the latter, you could use the Test fact. Not being sure about the
details of the
type of resultId I can't propose the exact code, but it's similar to the not
that's
already there, just using the entire resultId for the test.

-W


On 8 November 2010 11:16, jc7442 <jc7442 at yahoo.fr> wrote:

>
> In fact here I need the two results ... this is the result for the same
> computation ... but at different step. So they are attached to the same
> test. Here I want to create or reload and existing tests.
>
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Same-rules-applies-twice-tp1861724p1861854.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101108/c0ca608a/attachment.html 


More information about the rules-users mailing list