[rules-users] Use of KnowledgeAgent in JEE Container

2009-05-02 Thread Dave Macpherson
I was wondering if it's safe to use the KnowledgeAgent inside of a JEE container. I'm assuming that the KnowledgeAgent implementation spawns a thread to poll for changed resources (to reinitialize a KnowledgeBase, for instance, when updated DRL files are detected). Normally, use of unmanaged thread

RE: [rules-users] Rule Compilation error : The Field ... is not visible

2009-04-01 Thread Dave Macpherson
Are you trying to update the grossAmount propery of the LineItem class? Perhaps it's as simple as: rule "split line item" when $item : LineItem( grossAmount > 1000 ) then $item.setGrossAmount(500); // you may also wish to update the LineItem fact in working memory if you want to

[rules-users] Drools IDE Updating in Eclipse

2009-03-26 Thread Dave Macpherson
I've upgraded my Drools installation to 5.0.0.CR1, including the Eclipse IDE, and it all seems to be working, but Eclipse's automatic updates keep detecting that the IDE needs to be upgraded, and it's suggesting the M5 version of the IDE. I keep cancelling the update, but it's getting annoyingi

[rules-users] Smooks and Drools Pipeline

2009-03-02 Thread Dave Macpherson
Hey guys (Drools newbie here) I'm *attempting* to use the Drools/Smooks pipeline functionality to insert facts into my knowledgebase and I'm having a little trouble figuring out exactly how to do this. I've read the API docs for the 5.0.0.M5 and looked at the test cases but I guess I'm still not

[rules-users] Drools-Smooks Data Loader

2009-02-26 Thread Dave Macpherson
I'm trying to use Smooks to populate my Drools internal data model as per the blog posting at http://blog.athico.com/2008/07/drools-smooks-data-loader.html, but it's not quite working out for me. In that posting, there is the following line of code: DroolsSmooks loader = new DroolsSmooks( sess