OK I created a JIRA for that
https://jira.jboss.org/jira/browse/JBRULES-1907
And fixed it - so in a future version you should just add that
properties or conf file (as long as its .properties or .conf its ok)
and it should be included in the package configuration.
On Tue, Dec 30, 2008 at 9:38 AM, Srinivasan Muthu
<srinivasanm(a)vmware.com> wrote:
I have a custom accumulate function written in java which I use in my
rules.
To make this work in eclipse, I had to define this function in
drools.packagebuilder.conf file and put that in the root of the project.
Drools.packagebuilder.conf file content:
drools.accumulate.function.groupCount =
com.company.analysis.accumulators.GroupByAccumulateFunction
When I try the same in guvnor, I am not sure where to define this custom
function (similar to drools.packagebuilder.conf file) so that my rules will
get built into a package. Currently when I build the package from guvnor, I
get the following error:
Unable to build expression for 'accumulate' : No accumulator function found
for identifier: groupCount
This is because the drl file doesn't know how to interpret the
"groupCount"
function as its not defined anywhere.
I looked up the documentation and the mailing list and couldn't find any
solution. I also tried importing the whole drools.packagebuilder.conf file
into guvnor and that doesn't seem to work as well.
Thanks for your help,
Srini
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Michael D Neale
home:
www.michaelneale.net
blog:
michaelneale.blogspot.com