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>