I don&#39;t know whether this is the &quot;better (than rule templates) generic way&quot; you<br>are hinting at, but I&#39;ve been extending the template mechanism with a feature<br>permitting expansion from objects - maps or bean-style. This means that<br>
you can take a rule template file and instantiate its rule(s) from a collection of<br>such objects.<br><br>Is this closer to what you&#39;re looking for?<br><br>-W<br><br><div class="gmail_quote">2009/3/30 Meny Kobel <span dir="ltr">&lt;<a href="mailto:meny.kobel@gmail.com">meny.kobel@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi,<br>Could you please advice which is the best way to build Drools packages?<br>
I need to read the rules from database and I have to build drools packages.<br>The content of the rules is very flexible :<br>
1. I don&#39;t know the number of rules.<br>2. I don&#39;t know rule data: the type name, operation and value.<br>3. I do know the maximum number of types and operations the system support.<br><br>How should I build the packages:<br>

Should I write component that will read the rules from database and will transform it to drl file? <br>Any API I can use - Maybe BRMS API? <br><br>I&#39;m a ware of &quot;rule templates&quot; but I need a better generic way...<br>

<br> <br>Thanks,<br>Meny<br></div>
<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>
<br></blockquote></div><br>