Folks,

 

Using 4.0. Think I found a bug in accumulate. The variables defined inside <source pattern> cannot be recognized inside of other parts of accumulate (action, result)

 

f.e.

 

rule …

    when

            o : Date from accumulate (  

Parent( h : height  ) ,

init(;),

action(;),

reverse(),

result( $h )

)

            then …

end

 

 

Produces : $h cannot be resolved

 

 

Stack trace:

 

 

      at org.drools.rule.Package.checkValidity(Package.java:408)

      at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:288)

      at com.lear.rules.RuleBaseFacade.getRuleBase(RuleBaseFacade.java:46)

 

 

 

-Sergey

 

 

 

**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain
legally privileged, confidential or proprietary
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer.