(1) Consider using fireAllRules() after each insert of a new Fact()
instead of fireUntilHalt(). This would permit you to smuggle in the
update of Now, between inserts of new Facts, whenever it needs to be
(2) Consider retracting Fact (while keeping the data in a fact of some
(3) Consider adding a boolean to Fact's attributes: firedWithRuleX and
add this as a constraint.
(4) Consider inserting an auxiliary fact reflecting that some Fact has
fired with rule X.
On 07/06/2013, suntrian <suntrian(a)126.com> wrote:
i write a rule like this
Now( now )
Fact( attrib )
Using a Thread with fireUntilHalt( ) Method.
and then i update the Now regularly, and after that i insert a new Fact.
the problem is that , when i update the Now( ) , the rule fired , and i
insert the Fact, the rule fired again !
How can i make the update operation do not trigger the rule , while just
fire the rule when i insert the Fact ?
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com
rules-users mailing list