[rules-users] loading rules dynamically

ABRA abarnaramachandran at gmail.com
Tue Sep 22 01:56:15 EDT 2009


Hi
   Can you please give me an example to explain this? How to serialize the
rulebase and store it in database? The how do you load the rules in memory? 

thanks a lot in advance



cfili wrote:
> 
> I think the better approach if possible is to serialize your rule base and
> storing it in the database as such.  Storing the DRL and recompiling your
> rules at run time will be quite expensive.  We have a similar setup and it
> has worked out pretty well for us.
> 
> techy wrote:
>> 
>> Hi,
>> 
>>  If the rules,conditions,consequences have to be loaded from the
>> database. I can think of following two approach. what would be right
>> approach( I will have upto 1200 rules in the db)
>> 
>> 1. Programmatically inject the rules into rule engine using drools API.
>> 2. Read the rules from the database and create drl or dsl file for them
>> and inject into rule engine.
>> 
>> Thanks
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/loading-rules-dynamically-tp20274919p25530578.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list