Accumulate functions are very well documented in the Expert manual. Look for a section titled "Accumulate Functions".<br><br>You could also use accumulate with all the steps in inline code, which is documented in the preceding section.<br>
<br>-W<br><br><br><br><div class="gmail_quote">On 26 January 2011 16:50, groovenarula <span dir="ltr"><<a href="mailto:gnarula1@la-z-boy.com">gnarula1@la-z-boy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks for outlining the approach, Edson.<br>
<br>
Unfortunately, I'm a newbie using drools, so I just need some clarification<br>
on what you mean by 'matchAll is your own accumulate function with the<br>
semantics you described.' ? Do you mean that I have to create a 'custom'<br>
accumulate function ?<br>
<br>
Edson, if that's the case, then I'll try to search for example of creating a<br>
custom function. When I last searched, I did find an example on the<br>
Internet, however, I don't think I found details of how to make the function<br>
available to the rules engine (is it as simple as including the jar in the<br>
classpath or do I need to take addtional steps to use Matchall in drl ?)<br>
<br>
Can you please elaborate for the benefit of a noobie ?<br>
<br>
Thanks<br>
Gurvinder<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/How-to-write-a-rule-that-fires-when-it-matches-against-specific-facts-in-working-memory-tp2294599p2354793.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/How-to-write-a-rule-that-fires-when-it-matches-against-specific-facts-in-working-memory-tp2294599p2354793.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>