you no longer need to declare custom accumulators, instead they are specified via imports.
See docs, notice the “import” bit.
220.127.116.11.4.1. Accumulate CE (preferred syntax)
The code for the function is very simple, as we could expect, as all the "dirty"
integration work is done by the engine. Finally, to use the function in the rules, the
author can import it using the "import accumulate" statement:
import accumulate <class_name> <function_name>
For instance, if one implements the class some.package.VarianceFunction function that
implements thevariance function and wants to use it in the rules, he would do the
Example 7.77. Example of importing and using the custom "variance" accumulate
import accumulate some.package.VarianceFunction variance
rule "Calculate Variance"
accumulate( Test( $s : score ), $v : variance( $s ) )
// the variance of the test scores is $v
On 5 Mar 2014, at 23:13, mattmadhavan <mmadhavan(a)facs.org> wrote:
I am still suck on Drools 5.4/5.5 since I have issues with Custom
operators/Evaluators in 5.6.
I am not able to move to Drools 6.x because the spring configuration is
screwed up. There is no option to configure Custom operator/Evaluators in
Looks like I just cannot move to 6.x because most of my rules are highly
dependent on the Custom operator/evaluator I created!
I am mighty confused.
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com
rules-users mailing list