<div>Thanks Wolfgang. I found it. I Work on it and let you'll know how it goes.<br><br>Sent from my iPhone</div><div><br>On Jan 27, 2011, at 1:08 AM, "Wolfgang Laun-2 [via Drools - Java Rules Engine]" &lt;<a href="/user/SendEmail.jtp?type=node&node=2359225&i=0" target="_top" rel="nofollow">[hidden email]</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>

        
                
                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">&lt;<a href="/user/SendEmail.jtp?type=node&amp;node=2356705&amp;i=0&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br><blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">
<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?by-user=t&by-user=t" target="_blank" rel="nofollow" link="external"><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?by-user=t" target="_top" rel="nofollow" link="external">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></a><br>

Sent from the Drools - User mailing list archive at <a href="http://Nabble.com" target="_top" rel="nofollow" link="external">Nabble.com</a>.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="/user/SendEmail.jtp?type=node&amp;node=2356705&amp;i=1&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" rel="nofollow" link="external"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a></a><br>
</font></blockquote></div><br>
<br>_______________________________________________
<br>rules-users mailing list
<br><a href="/user/SendEmail.jtp?type=node&amp;node=2356705&amp;i=2&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a></a><br>
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <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-tp2294599p2356705.html?by-user=t" target="_top" rel="nofollow" link="external"><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-tp2294599p2356705.html?by-user=t" target="_top" rel="nofollow" link="external">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-tp2294599p2356705.html</a></a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;">
                
                To unsubscribe from How to write a rule that fires when it matches against specific facts in working memory., <a href="http://drools-java-rules-engine.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&amp;node=2294599&amp;code=Z25hcnVsYTFAbGEtei1ib3kuY29tfDIyOTQ1OTl8MjAzMTM1NDY2Mw==&by-user=t" target="_top" rel="nofollow" link="external">click here</a>.
        </div></div></blockquote>
<br><hr align="left" width="300">
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-tp2294599p2359225.html">Re: How to write a rule that fires when it matches against specific facts in working memory.</a><br>
Sent from the <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html">Drools - User mailing list archive</a> at Nabble.com.<br>