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 "Context" object and feed the working memory with it plus all the other regular facts you already have. With this you achieve the parametrization you're looking for, and there'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"><<a href="mailto:sutavis@gmail.com">sutavis@gmail.com</a>></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'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>