You'll have to use a single, dedicated fact and call modify/update before each fireAllrules.
For your other problem: updating all facts is probably the best solution. (You may, of course,
also add a pattern with a single "trigger" fact, again to be updated before each call to
fireAllRules.)
As you have experienced, "fired" activations remain passive across multiple calls to
fireAllRules.
-W
Hmm,
even that doesn't work. Do you test it by yourself?
I just created a new project, with the standard hello world example. And add
the rule to the Sample.drl file. After that, I add another
ksession.fireAllRules() to the main and execute it. The only messages I've
got are:
TEST
Hello World
Goodbye cruel world
and not (how expected)
TEST
Hello World
Goodbye cruel world
TEST
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/fireAllRules-multiply-times-tp1019111p1019616.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users