<br><br><div class="gmail_quote">On 12 July 2011 16:30, Andre <span dir="ltr">&lt;<a href="mailto:morpheusandre@web.de">morpheusandre@web.de</a>&gt;</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>
rule &quot;Request counting analysed Resources By Id&quot;<br>
when<br>
    $list: List()<br>
            from accumulate($neu : RequestCtx() over<br>
window:time(1m),countMatchingAnalysedResourcesInRequest($neu) )<br>
    ResourceMatch( $id: uri.toString(), count &gt; 1 ) from $list<br></blockquote><div><br>This uri.toString() looks suspicious. Try binding just uri and call toString() in the consequence.<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

then<br>
    System.out.println( &quot;Id &quot; + $id + &quot;: &quot; );<br>
    System.out.println(&quot;Request counting Resources By Id Rule Workss&quot;);<br>
    channels[&quot;AuthZBlocking&quot;].send(new ItemCacheEntry(new Item((String)$id),<br>
new Date(System.currentTimeMillis()+ 8000)));<br>
end<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/accumulate-Functions-with-self-coded-classes-as-result-type-tp3162593p3162593.html" target="_blank">http://drools.46999.n3.nabble.com/accumulate-Functions-with-self-coded-classes-as-result-type-tp3162593p3162593.html</a><br>

Sent from the Drools: User forum 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>