<div>&nbsp;</div>
<div>I have a question about alpha node sharing in release 4.0MR2. In the API for class&nbsp;RuleBaseConfiguration there is a method to turn alpha node sharing on and off. However, I get some odd behaviour when I turn it off and I was hoping someone can help me understand what&#39;s going on. I&#39;ll illustrate the behaviour with the two rules &quot;First&quot; and Second&quot; defined below. Both rules work with&nbsp; a class Customer, which&nbsp;&nbsp;is a simple object with attribute age. 
</div>
<div>&nbsp;</div>
<div>
<div>rule &quot;First&quot;<br>salience 10<br>&nbsp;when<br>&nbsp;&nbsp;c: Customer(age &lt;= 10)<br>&nbsp;then<br>&nbsp;&nbsp;System.out.println(&quot;First - Customer age less than 10&quot;);</div>
<div>end</div>
<div>&nbsp;</div>
<div>rule&nbsp;&quot;Second&quot;<br>salience 5<br>&nbsp;when<br>&nbsp;&nbsp;&nbsp;&nbsp; c: Customer(age &lt;= 10)<br>&nbsp;then<br>&nbsp;&nbsp;System.out.println(&quot;Second - Customer age less than 10&quot;);<br>end<br>&nbsp;</div></div>
<div>&nbsp;</div>
<div>In the default case where alpha node sharing is on,&nbsp;I assert a customer with age 5 and fireAllRules to get the following (hopefully, correct) output:</div>
<div>&nbsp;</div>
<div>&nbsp; First - Customer age less than 10</div>
<div>&nbsp; Second - Customer age less than 10</div>
<div>&nbsp;</div>
<div>However, if I set the setShareAlphaNodes(false) to turn off alpha node sharing I get the following output:</div>
<div>&nbsp;</div>
<div>&nbsp; First - Customer age less than 10</div>
<div>&nbsp;</div>
<div>Reading the manual, I had assumed that the alpha node sharing was just an optimization, and switching it off may be inefficient, but would give the same output for the example rules. Is this correct, or have I missunderstood alpha node sharing. I&#39;ve tried switching off alpha node sharing both directly via the API method, and using the system property option, but the behaviour is the same in both cases. 
</div>
<div>&nbsp;</div>
<div>Regards</div>
<div>Shahad<br>&nbsp;</div>