[rules-users] rule algorithm

thomas kukofka thomaskukofka at web.de
Mon Sep 1 09:28:43 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080901/ee060f33/attachment.html 


More information about the rules-users mailing list