Hi guys,
In my process I need to check if a rule is still valide each three second, the rule is activated and fired oanly the first time
My process :
my rule :
rule 'toujours'
no-loop true
ruleflow-group 'supplier'
when
then
System.out.println('Rules : ----------- test ------------- ');
end
to fire the rules :
for (int i = 0; i < 20; i++) {
ksession.fireAllRules();
Thread.sleep(2000);
}
The execution log :
Hello World
step 2
Rules : ----------- test -------------
step 2
step 2
step 2
step 2
step 2
step 2
step 2
step 2
step 2
Any idea how to activate the rule each time in the loop:
many thanks.