[rules-users] Dynamic changes to drl file

pns77 pnsrapuram at gmail.com
Thu Aug 23 09:18:00 EDT 2007


Have been stuck with this for quite some time now. Would appreciate if anyone
could help me out.

I was checking if changes could be made to the rule file at runtime and the
following is the block of code that i tried

            RuleBase ruleBase = readRule();
            WorkingMemory workingMemory =
ruleBase.newStatefulSession(false); // to keep reference
            // Create a message object
            workingMemory.insert( message );
            workingMemory.fireAllRules();

When i try chaning the "drl" file at run time the change doesnt get
reflected. Is there anything else i need to be doing here?  Any additional
jar files ?

To have this change take effect at runtime - do i need to create a new
session for each run or do i need to retain the session - i tried both
"newStatefulSession(false)" and "newStatefulSession()" - get the same result
with both. 
-- 
View this message in context: http://www.nabble.com/Dynamic-changes-to-drl-file-tf4317491.html#a12293461
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list