&quot;Rewrite&quot; opens a very wide range of possibilities. Modifying compiled<br>rules is tricky, and it&#39;s in the &quot;unstable&quot; part of the API. But there might<br>be other options. Can you be more specific what you mean by &quot;rewrite&quot;?<br>
-W<br><br><div class="gmail_quote">On 9 February 2011 15:06, jwillans2 <span dir="ltr">&lt;<a href="mailto:james.willans@ceteva.com">james.willans@ceteva.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello,<br>
<br>
We have a rule set that need to be rewritten before being loaded into the<br>
knowledge base.  The rewrite can only be determined by data known at<br>
runtime.  Currently we can achieve this by performing string subsitutions on<br>
the rules, however I&#39;d like to explore more efficient (and less clumsy) ways<br>
of doing this.<br>
<br>
It looks like rule templates could be a less error-prone way of achieving<br>
the same end through the use of place holders, but it still requires for the<br>
resultant rule strings to be recompiled.  I was wondering whether it is<br>
practical to store the rules in compiled form, and then perform the<br>
rewriting on the loaded data structures?  Any suggestions and/or experience<br>
of techniques would be very welcome.<br>
<br>
Thanks,<br>
<br>
James<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Rewriting-rules-tp2458626p2458626.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Rewriting-rules-tp2458626p2458626.html</a><br>

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>
</font></blockquote></div><br>