The Context fact I mentioned would be populated with values coming from a DB or properties file. At runtime you can read the right properties file, create a &quot;Context&quot; object and feed the working memory with it plus all the other regular facts you already have. With this you achieve the parametrization you&#39;re looking for, and there&#39;s no need to change code for that.<div>
<br></div><div>Another approach is the one described by Ansgar with different DRLs. Both would work, you just need to make up your mind :)<br><br><div class="gmail_quote">On Tue, May 24, 2011 at 9:17 PM, marunam <span dir="ltr">&lt;<a href="mailto:sutavis@gmail.com">sutavis@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I understand that fact could store the values but my question more towards<br>
how to design this for dynamic number of facts. Let&#39;s say, if the business<br>
want to modify the rules with more fact values, I want to be able to happen<br>
this dynamically rather than changing the code for fact values and adding it<br>
there.<br>
<br>
I was thinking more toward having a property file(database??) and program<br>
reads those dynamic values and prepares fact model before running the rules<br>
<br>
Thoughts??<br>
<br>
Thanks<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/drools-dynamic-LHS-tp2980536p2981145.html" target="_blank">http://drools.46999.n3.nabble.com/drools-dynamic-LHS-tp2980536p2981145.html</a><br>
</font><div><div></div><div class="h5">Sent from the Drools: User forum 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></div>