[rules-users] fireAllRules() - multiply times.

Maverickthe6 Maverickthe6 at web.de
Tue Aug 3 09:30:35 EDT 2010


Hey!

I'm new to drools-expert and try to modell the following situation:

- I have a ruleflow
- I want to collect data and all few seconds (like 10 seconds), I want to
execute fireAllRules(). (Called by a timer).

FireUntilHalt() is not an option, and in the situation above the following
"problem" arises:

I lost some facts, because in a new fireAllRules() run, some of these facts
wasn't touched anymore and therefore didn't set on the agenda once more. So
they will be only regarded in the first fireAllRules() run... But - of
course - I want the facts to be regarded once more in later turns. At the
moment,  I update the facts (as last rule that fires) per ruleflow-group,
even if they haven't had been modified. This is..ehm.. not so nice ;) (but
helps..), and the question is now: what is the state-of-the-art to model
this?

And a question that comes along is, how can I design a rule, that has no
condition at the LHS and will be executed each time I call fireAllRules().

Thanks! 
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/fireAllRules-multiply-times-tp1019111p1019111.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list