[jboss-user] [jBPM] - fireAllRules() in a loop issue
Miloud Haimoune
do-not-reply at jboss.com
Fri Feb 3 12:53:02 EST 2012
Miloud Haimoune [https://community.jboss.org/people/milhaim] created the discussion
"fireAllRules() in a loop issue"
To view the discussion, visit: https://community.jboss.org/message/714364#714364
--------------------------------------------------------------
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.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/714364#714364]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120203/4e053f0b/attachment.html
More information about the jboss-user
mailing list