Hi All,
We are migrating rules from Abinitio BRE to Drools. There are multiple set of rules and each set have more than 50 rules. These rules are interdependent. There are looping scenario like rule1 is dependent on rule2 and rule2 is on rule3 and rule3 is on rule1 like this.
We choose “None” hit policy and used Salience to manage dependency. Also used “Lock-on-Active” But still, we are facing looping scenario and sometimes rules not getting fired even condition is satisfied.
We are looking for suggestions, like how to avoid looping and manage dependency.
Thanks,
Anil
declare rule_a
end
rule "A"
when
not rule_a()
then
rule_a obj = new rule_a();
insert(obj);
end
declare rule_b
end
rule "B"
when
rule_a()
not rule_b()
then
rule_b obj = new rule_b();
insert(obj);
end
declare rule_1461
entered : Boolean
end
declare init_1461
end
rule "Rule init 'Rule' 1461"
salience 1000
when
not rule_1461()
not init_1461()
rule_<sub>()
then
init_1461 obj = new init_1461();
insert(obj);
end
rule "Ending Rule 'Rule' 1461"
salience -1000
when
not rule_1461()
init_1461()
then
rule_1461 regra = new rule_1461();
regra.setEntered(false);
insert(regra);
end
rule "Rule 1461"
when
not rule_1461()
init_1461()
rule_<sub>( entered = true )
<another conditions>
then
rule_1461 regra = new rule_1461();
regra.setEntered(true);
insert(regra);
end
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/21a70019-09b2-4e0f-a89e-45e721af44c1n%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/c10ea992-bf0d-47ef-af5e-31827115ad70n%40googlegroups.com.