Hi.
I'm no expert, but I think you have to 'recompile' the drl file using
PackageBuilder if you change it on disk and wish to use the new version.
--Arsalan
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of pns77
Sent: 23 August 2007 18:48
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Dynamic changes to drl file
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#a122934
61
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
This message contains information that may be privileged or confidential and is the
property of the Capgemini Group. It is intended only for the person to whom it is
addressed. If you are not the intended recipient, you are not authorized to read, print,
retain, copy, disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and delete all
copies of this message.