[drools-user] Drools as an IOC
Mark Stang <mark <at> markjstang.com>
2005-10-05 04:06:09 GMT
Hi,
I posted this on the IRC, but it was late at night, so I thought I would
ask the list.
<mstang> hi
<mstang> I am considering using drools as an IOC device.
<mstang> One way to use drools, seems to be a kind of engine where you
feed the working memory data and then say "go"
<mstang> What I was thinking of was having events "happen" and then have
those events added as facts and then letting drools respond
<mstang> Drools never returns, it just sits there and processes.
<mstang> Anyone have any thoughts?
<mstang> I was looking at the petstore application and it seems to
"gather" data and then feed it into drools.
<mstang> It seems to me that it could react to button clicks and process
the data real-time, rather than only at the end.
<bob> it should return
<bob> particularly from assertObject(...)
<bob> fireAllRules() could go circular, depending on what your rules do
My basic question is can I have rules that are running permanently. It
seems that the petstore demo shows that once the data has been acquired,
it is processed. What I want to do is have the rules process
continually as events arrive. It seems that the rules engine is outside
of the process. Only occasionally, is data or the working memory
updated and then all the rules fire. I guess I would like the rules
engine to be the event processor.
Thoughts?
(Continue reading)