On 12 July 2011 16:30, Andre <morpheusandre(a)web.de> wrote:
rule "Request counting analysed Resources By Id"
when
$list: List()
from accumulate($neu : RequestCtx() over
window:time(1m),countMatchingAnalysedResourcesInRequest($neu) )
ResourceMatch( $id: uri.toString(), count > 1 ) from $list
This uri.toString() looks suspicious. Try binding just uri and call
toString() in the consequence.
-W
then
System.out.println( "Id " + $id + ": " );
System.out.println("Request counting Resources By Id Rule Workss");
channels["AuthZBlocking"].send(new ItemCacheEntry(new Item((String)$id),
new Date(System.currentTimeMillis()+ 8000)));
end
--
View this message in context:
http://drools.46999.n3.nabble.com/accumulate-Functions-with-self-coded-cl...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users