<br><br><div class="gmail_quote">On 12 July 2011 16:30, Andre <span dir="ltr"><<a href="mailto:morpheusandre@web.de">morpheusandre@web.de</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>
rule "Request counting analysed Resources By Id"<br>
when<br>
$list: List()<br>
from accumulate($neu : RequestCtx() over<br>
window:time(1m),countMatchingAnalysedResourcesInRequest($neu) )<br>
ResourceMatch( $id: uri.toString(), count > 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( "Id " + $id + ": " );<br>
System.out.println("Request counting Resources By Id Rule Workss");<br>
channels["AuthZBlocking"].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>