<br>&nbsp;&nbsp; Michal,<br><br>&nbsp;&nbsp; Yes, it is a bug. Interesting that it only occurs with an alpha constraint with embedded semantic code AND if you have the &quot;or&quot; CE in the sequence... :(<br>&nbsp;&nbsp; I will track it down and fix it. May I ask you please to open a JIRA for it?
<br><br>&nbsp;&nbsp; Thank you,<br>&nbsp;&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/11/21, Michal Bali &lt;<a href="mailto:michalbali@yahoo.ie">michalbali@yahoo.ie</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br><br>I have following rule that should never fire, but it does :)<br><br>package com.sample<br>import com.sample.DroolsTest.*
;<br>rule &quot;ruleThatShouldNeverFire&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message(&nbsp; eval(&quot;somethingDifferent&quot;.equals(message)) ) # this should never match<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SomeBeanA( ) or SomeBeanB( )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println( drools.getRule().getName() + &quot; fired and shouldn&#39;t&quot; );<br>end<br><br>stateful ruleSession with following
 insertions:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message message = new Message();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; message.setMessage(&nbsp; &quot;Hello World&quot; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; workingMemory.insert( message );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; workingMemory.insert( new SomeBeanA() );
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; workingMemory.insert( new SomeBeanB() );<br><br>It behaves the same way if we use predicates or retun values:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #Message(&nbsp; msg : message -&gt; (&quot;somethingDifferent&quot;.equals (msg)) ) # this should never match
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #Message(&nbsp; message == (&quot;somethingDifferent&quot;.equals (message)) ) # this should never match<br><br>It looks like the AlphaNode is missing from
 the Rete network.<br><br>Tested with Drools 4.0.3. Java build 1.5.0_11-b03.<br><br>Any ideas if this is a bug or am I doing something wrong?<br><br>Thanks.<br>Regards,<br>Michal<br></div></div><br>Send instant messages to your online friends 
<a href="http://uk.messenger.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://uk.messenger.yahoo.com</a> </div><br>_______________________________________________<br>rules-users mailing list
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646
<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>