Thanks for your quick response Michael, I have identified the issue..
while writing rules in Decision table (Web-guided editor) -> column
configuration there is a option Update engine with changes (Checking this
will tell the engine that the value has changed. This will cause the rules
that depend on it to be re-evaluated. Use with care!). This was checked
unintentionally, hence every time it is going to the same rule.
From:
Michael Anstis <michael.anstis(a)gmail.com>
To:
Rules Users List <rules-users(a)lists.jboss.org>
Date:
03/10/2011 10:34 PM
Subject:
Re: [rules-users] Infinite loop in rule condition matching
Sent by:
rules-users-bounces(a)lists.jboss.org
Without seeing the rules it would be very hard to determine what causes
your issue.
"Infinite loops" normally imply there is some degree of circularity
between rules.
Can you please provide a self contained test case or your rules (DRL form,
preferential).
Thanks
2011/3/10 Sartaj Shaik <sartaj.shaik(a)tcs.com>
Hi,
I have written some rules in Decision table (Web-guided editor), and I
have implemented the AgendaFilter to fire rules that ends with the rule
name specified (EndAgendaFilter)
here is the accept method I have written.
When I fire the rules ends with some "XXXXX", this accept method goes into
infinite loop and my Sysout prints "Rule 1 XXXXX" infinite times.
(Note: all the condition variables that i have passed to guvnor matches
with the first row of that rule, hence getting Rule 1 XXXXX)
public boolean accept(final Activation activation) {
System.out
.println(activation.getRule().getName());
if (activation.getRule().getName().endsWith(this.
suffix)) {
return this.accept;
} else {
return !this.accept;
}
}
All my other rules are working fine, even I have created the same rule
again (same conditions, actions, data etc) it is working properly.
Don't know what is the root cause, any ideas?
I have 3 similar rules which are failing, and those rules contains lot of
rows, so can't create the new rules for those again to make them work :(
Please help!!!
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you