<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Are the values in the list ever tested? (With rules conditionally firing if the contents of a list changes.) &nbsp;In the rules you've provided so far they are not. &nbsp;If this is the case then there's no need to match them in the conditions and the use of globals is just fine. &nbsp;The only reason to match a list in the rule conditions is if changing the list could result in that rule firing.</span></div><div><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> abhinay_agarwal &lt;abhinay_agarwal@infosys.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b>
 rules-users@lists.jboss.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, November 27, 2012 4:36 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] Inserting Different Objects Of Same Class !<br> </font> </div> <br>
I was initially using two lists making them global, and it was working for<br>me, but then i read <br><br>"Globals are not designed to share data between rules and they should never<br>be used for that purpose. Rules always reason and react to the working<br>memory state, so if you want to pass data from rule to rule, assert the data<br>as facts into the working memory."<br><br>So, thought might be somewhere, an issue can arise and changed the global<br>facts.<br><br>Thanks,<br>AA<br><br><br><br>--<br>View this message in context: http://drools.46999.n3.nabble.com/Inserting-Different-Objects-Of-Same-Class-tp4020971p4020981.html<br>Sent from the Drools: User forum mailing list archive at <a target="_blank" href="http://nabble.com/">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" 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><br> </div> </div>  </div></body></html>