Thank you for the reply.<br><br><div class="gmail_quote">2009/7/5 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>The rule is capable of locating two different facts of type PlaceHolder</div>
<div>because you wrote it that way: one is supposed to have a field</div>
<div>value equal to 1, and the other one equal to 2. (Clearly, there cannot</div>
<div>be one fact where value equals 1 and 2 at the same time.)</div>
<div> </div>
<div>Drools (and other rule-based systems) wouldn&#39;t be worth a</div>
<div>farthing if they weren&#39;t able to do that ;-)</div>
<div> </div>
<div>-W<br><br> </div>
<div><div><div></div><div class="h5"><span class="gmail_quote">On 7/3/09, <b class="gmail_sendername">balachandra maddina</b> &lt;<a href="mailto:chandu2708@gmail.com" target="_blank">chandu2708@gmail.com</a>&gt; wrote:</span>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Hi There,<br><br>  Im wondering weather the Following rule would work properly,<br>
<br>   rule &quot;abc&quot;<br>
<br>     when<br>    <br>          a : PlaceHolder(value == 1)<br>          b : PlaceHolder(value == 2)<br><br>     then<br>      System.out.println(&quot;print&quot;);<br>.........................<br>workingmemory.insert(placeholderobject1);<br>

workingmemory.insert(placeholderobject2);<br>workingmemory.fireAllRules();   <br>..........................................<br><br>when i tried, the code is working fine, but How can the rule here is able to diffirentiate between two facts of same type? any help would be very much appriciated. <br>

<br>Thank you,<br>bala.<br><br></div></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a 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>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a 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>