1) You insert Facts into WM like records into a RDBMS and rules can be considered with some equivalence to RDBMS triggers. So if you insert 2 &quot;container&quot; facts into WM the rules will match for each container fact separately. E.G. (pseudo code):-<br>
<br>class ParamContainer {<br><br>private int p1;<br>private int p2;<br>private int p3;<br><br>//Getters...<br><br>}<br><br>ParamContainer pc1 = new ParamContainer(1, 2, 3);<br>ksession.insert(pc1);<br><br>ParamContainer pc2 = new ParamContainer(5, 6, 7);<br>

ksession.insert(pc2);<br><br>ksession.fireAllRules();<br><br>rule &quot;one&quot;<br>when<br>ParamContainer($p1 : p1, $p2 : p2, $p3 : p3)<br>...<br>then<br>//do something<br>end<br><br>Rule &quot;one&quot; will trigger twice, once for object pc1 and again for pc2.<br>
<br>2) Lower salience rules have their activations on yhre agenda executed beforre other higher salience rules. So you can use low salience rules to initialise state or bootstrap processing. E.G (more pseudo code):-<br><br>
rule &quot;bootstrap&quot;<br>salience -10<br>when<br>then<br>//Could equally read from a RDBMS<br>insert(new ParamContainer(1, 2, 3));<br>insert(new ParamContainer(4, 5, 6));<br>end<br><br>rule &quot;my business rules&quot;<br>
salience 0<br>when<br>ParamContainer($p1 : p1, $p2 : p2, $p3 : p3);<br>...<br>then<br>...<br>end<br><br>
<br><div class="gmail_quote">On 29 December 2010 06:15, wasim.khan318 <span dir="ltr">&lt;<a href="mailto:khanwasim07@yahoo.co.in">khanwasim07@yahoo.co.in</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
what exactly  you mean by  lower salience rule<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Modifying-in-built-rule-in-new-formatt-tp2151450p2161308.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Modifying-in-built-rule-in-new-formatt-tp2151450p2161308.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br>