can you please open a jira ticket and possibly add a reproducer?
It seems a serious regression, but it would have to be reproduced
and fixed in the next few days for this to make it to the final release
Thanks!
Davide
On 06/18/2014 03:26 PM, rogerL wrote:
After upgrade to 6.1.0.CR1 rule compilation is generating a
pluggable
accumulate function registration error.
Partial stack dump:
Caused by: java.lang.RuntimeException: Error while creating KieBase[Message
[id=1, level=ERROR,
path=com/s/c/manager/rules/campaign/priority/prioritize.drl, line=31,
column=0
text=Unknown accumulate function: 'topPriority' on rule 'Insert highest
priority campaign'. All accumulate functions must be registered before
building a resource.], Message [id=2, level=ERROR,
path=com/s/c/manager/rules/campaign/priority/prioritize.drl, line=31,
column=0
text=Rule Compilation error $tc cannot be resolved to a variable]]
The associated rule and accumulate import are:
import accumulate com.s.c.util.HighestPriorityCampaignAccumulateFunction
topPriority;
rule "Insert highest priority campaign"
when
not TopCampaign()
accumulate(TargetCampaigns($list : list, list.size >0), $tc :
topPriority( $list ) )
then
insert(new TopCampaign($tc));
end
Is this syntax no longer correct?
--
View this message in context:
http://drools.46999.n3.nabble.com/accumulate-function-not-registered-tp40...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users