testTestsRulesEngine(
suitability.TestsRulesEngineTest)suitability.RulesEngineException: Could not load/compile rules file: testAccumulate.drlat suitability.RulesEngine.<init>(
RulesEngine.java:39)at suitability.TestsRulesEngine.<init>(
TestsRulesEngine.java:13)at suitability.TestsRulesEngineTest.setUp(
TestsRulesEngineTest.java:72)Caused by:
java.lang.NullPointerExceptionat org.drools.common.AbstractRuleBase.addPackages(
AbstractRuleBase.java:434)at org.drools.reteoo.ReteooRuleBase.addPackage(
ReteooRuleBase.java:388)at suitability.RulesEngine.<init>(
RulesEngine.java:36)... 14 more
Hi,
I am trying my hand at the accumulate function in Drools 5.x but the drl fails
to compile.
Not sure what's wrong with it. Please help.
This is the sample that i am working with
rule "Test Accumulate Function"
when
$p : ProductType ($name : name)
$min_score : Number ()
from accumulate (Client (productTypeExperience.keySet contains $name,
$score :
((ExperienceLevel)productTypeExperience[$name]).value()),
min ($score))
then
System.out.println ("$min_score" + $min_score);
end
Regards,
Manav
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users