<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">This may be a silly question, but I had taken the non-self-joining nature of Drools for granted.  Aside from disabling the option in RuleBaseConfiguration, how would one write a rule that would not self-join (ie. the old behavior)?<DIV><BR class="khtml-block-placeholder"></DIV><DIV>(Say I wanted two different facts to match:</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>when</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>Foo()</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>Foo()</DIV><DIV>instead of the new default which allows the same fact to match)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks.</DIV><DIV>Terry</DIV><DIV><BR><DIV><DIV>On Mar 26, 2007, at 12:26 PM, Edson Tirelli wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>   Michael,<BR><BR>   In 3.1 the default is now to allow self joins (we need to add BIG<BR>warnings to the documentation due to this change) and an option was<BR>added to RuleBaseConfiguration to remove self joins.<BR> <BR>   []s<BR>   Edson<BR><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><BR>Michael Neale wrote:<BR><BR>&gt; I know that we by default remove self joins, ie: <BR>&gt;<BR>&gt; when<BR>&gt;   Foo()<BR>&gt;   Foo()<BR>&gt;<BR>&gt; will not match for the same instance of Foo - is it possible to turn<BR>&gt; that off? I know we talked about it at one point, not sure what the<BR>&gt; latest position is (someone was asking me and I can't recall what our <BR>&gt; final position is). FYI Jess and Jrules both self join by default.<BR>&gt;<BR>&gt;------------------------------------------------------------------------<BR>&gt;<BR>&gt;_______________________________________________ <BR>&gt;rules-dev mailing list<BR>&gt;<A href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</A><BR>&gt;<A href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev </A><BR>&gt;<BR>&gt;<BR><BR><BR>--<BR> Edson Tirelli<BR> Software Engineer - JBoss Rules Core Developer<BR> Office: +55 11 3124-6000<BR> Mobile: +55 11 9218-4151<BR> JBoss, a division of Red Hat @ <A href="http://www.jboss.com"> www.jboss.com</A><BR><BR><BR>_______________________________________________<BR>rules-dev mailing list<BR><A href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</A><BR><A href="https://lists.jboss.org/mailman/listinfo/rules-dev"> https://lists.jboss.org/mailman/listinfo/rules-dev</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear="all"><BR>-- <BR>  Edson Tirelli<BR>  Software Engineer - JBoss Rules Core Developer<BR>  Office: +55 11 3124-6000<BR>  Mobile: +55 11 9218-4151 <BR>  JBoss, a division of Red Hat @ <A href="http://www.jboss.com">www.jboss.com</A><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rules-dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>