<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't be worth a</div>
<div>farthing if they weren't able to do that ;-)</div>
<div> </div>
<div>-W<br><br> </div>
<div><span class="gmail_quote">On 7/3/09, <b class="gmail_sendername">balachandra maddina</b> <<a href="mailto:chandu2708@gmail.com">chandu2708@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi There,<br><br> Im wondering weather the Following rule would work properly,<br><br> rule "abc"<br>
<br> when<br> <br> a : PlaceHolder(value == 1)<br> b : PlaceHolder(value == 2)<br><br> then<br> System.out.println("print");<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>_______________________________________________<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>