Hi all here,
I'm a newcomer with drools.net, so that I have some problems needing your help:
1. I use FileStream to load rule-set files like that:
RuleBase ruleBase = RuleBaseLoader.LoadFromStream(new
FileStream("./Drlfiles/AllRules.csharp.drl.xml",FileMode.Open));
WorkingMemory workingMemory = ruleBase.GetNewWorkingMemory();
My question is: how to load another file at the same time with this file (I
mean we can use another ruleBase object and workingMemory object, or other
means, whatever)
2. How to refresh the working memory or refresh the value of object properties?
In my situation, I assert an object in to workingMemory and when I want to
assert another one (of the same class) into workingMemory (use the same
function for this adding), I always receive the new value for properties of
that object.
Here is my code:
{
DeviceSum _device = new DeviceSum();
string _deviceName = cboDevice.Text.Trim();
// get properties from the device in the combo box.
Getdata(_deviceName,1,_device);
workingMemory.AssertObject(_device);
workingMemory.FireAllRules();
}
P/S: I'm using Drools.net ver1.0.0.0 for .Net 1.1
Thanks in advance
Wish you a very nice day.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945053#3945053
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945053
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user