Alexis,
This was not exposed in the kmodule and we are discussing the best way to do it. Ideally, we want to reduce in 6 the complexities of configuration we had in 5, and for accumulate functions, we are thinking the best would be to simply support them in imports in the DRL file. So, for instance, to use a function foo() in a rule, one would do (pseudo code for now):
import function org.bar.FooFunction.foo;
Or a similar construct. Happy to hear your thoughts about this compared to a module/system wide configuration like we had in 5. We will do this over the next few days.
Having said that, for those already using accumulate functions and migrating to Drools 6, the work around until we get this in place is to use the "old" way, adding a configuration file to the META-INF directory:
META-INF/drools.packagebuilder.conf
And setting the custom functions in there as properties (e.g.):
drools.accumulate.function.foo = org.bar.FooFunction
..
We will get this sorted out in the next few days, if anyone wants to contribute their thoughts, it is welcomed.
Edson