[rules-users] Rewriting rules

Corneil du Plessis corneil at tsctech.com
Wed Feb 9 10:52:53 EST 2011


You should consider changing your rules to use the data as facts which 
are inserted into working memory or loaded by some of the rules.

If you can provide some sample rules it might be possible to suggest 
alternate options.

On 09/02/2011 16:06, jwillans2 wrote:
> Hello,
>
> We have a rule set that need to be rewritten before being loaded into the
> knowledge base.  The rewrite can only be determined by data known at
> runtime.  Currently we can achieve this by performing string subsitutions on
> the rules, however I'd like to explore more efficient (and less clumsy) ways
> of doing this.
>
> It looks like rule templates could be a less error-prone way of achieving
> the same end through the use of place holders, but it still requires for the
> resultant rule strings to be recompiled.  I was wondering whether it is
> practical to store the rules in compiled form, and then perform the
> rewriting on the loaded data structures?  Any suggestions and/or experience
> of techniques would be very welcome.
>
> Thanks,
>
> James

-- 

Corneil du Plessis - Software Architect

TSC Technologies (Pty) Ltd
(o) +27 11 431 1666
(f) +27 86 674 2962
(c) +27 82 530 9259
Email: corneil at tsctech.com <mailto:corneil at tsctech.com>
www.tsctech.com <http://www.tsctech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110209/88c28209/attachment.html 


More information about the rules-users mailing list