[rules-users] accumulate Functions with self coded classes as result type

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jul 12 10:41:44 EDT 2011


On 12 July 2011 16:30, Andre <morpheusandre at 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-classes-as-result-type-tp3162593p3162593.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110712/47d09487/attachment.html 


More information about the rules-users mailing list