[rules-users] Re: rule algorithm

Edson Tirelli tirelli at post.com
Mon Sep 1 10:49:40 EDT 2008


   Any of the following:

* the file defined by your drools.packagebuilder.conf system property
* $HOME/drools.packagebuilder.conf
* $WORKDIR/drools.packagebuilder.conf
* META-INF/drools.packagebuilder.conf on the classloader relative path

    You also have the META-INF/drools.default.packagebuilder.conf that you
may change or you may also declare a system property or call the API.

    Some of these options will not make the eclipse editor aware of your
function, but all of them will work on runtime.

    []s
    Edson


2008/9/1 thomas kukofka <thomaskukofka at web.de>

> Hallo Edson,
>
> thanks for the quick answer. Where can I find  the configuration file where
> I have to define the ne accumulate function:
>
> drools.accumulate.function.calculateCertainty = org.drools.base.accumulators.NewAccumulateFunction
>
>
> regards
> Thomas
>
>
>    Or an accumulate function (as long as all you objects implement a
> commong
> interface):
>
> rule "overall certainty"
> when
>    $cert : Number() from accumulate(
>              $f : CertaintyFacts(  ),
>              overallCertainty( $f ) )
> then
>    // do something with $cert
> end
>
>    Implement your own formula inside overallCertainty function .
>
>    []s
>    Edson
>



-- 
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080901/073a220e/attachment.html 


More information about the rules-users mailing list