[rules-users] Fusion, Insert Events with timestamp in the past.

SebastianStehle mail2stehle at gmail.com
Wed Jun 4 05:29:17 EDT 2014


Hi,
I am working on an existing drools project. We have a lot of rules with
"after" or "not after" relationships.

One of the problems I run into is when updating the rules. At the moment a
new session will be created and all facts are inserted from the old to the
new session. But something does not work in the scenario. To reproduce the
problem I made a simple test with the following rule:

rule "not after"
when
	$message : DroolsSimulationMessage(value == 1) not
(DroolsSimulationMessage(value == 2, this after [1s, 10s] $message)) 
then
end

I inserted an event with a timestamp 5 seconds in the past and I expect the
rule to be activated 5 seconds after the event was inserted. But in my
scenario it does not work, the rule is activated after 10 seconds. This is a
very important point to make the current update progress work. Should it
work and if not is there a better way to realize rule-updates?

Thanks you in advance,
Sebastian 



--
View this message in context: http://drools.46999.n3.nabble.com/Fusion-Insert-Events-with-timestamp-in-the-past-tp4029843.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list