[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2258) count in sliding time

Mark Proctor (JIRA) jira-events at lists.jboss.org
Sun Apr 4 00:56:38 EDT 2010


     [ https://jira.jboss.org/jira/browse/JBRULES-2258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Proctor updated JBRULES-2258:
----------------------------------

    Fix Version/s: 5.1.0.M2
         Assignee: Edson Tirelli  (was: Mark Proctor)


> count in sliding time
> ---------------------
>
>                 Key: JBRULES-2258
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2258
>             Project: Drools
>          Issue Type: CTS Challenge
>      Security Level: Public(Everyone can see) 
>          Components: drools-core (fusion)
>    Affects Versions: 5.0.1.FINAL
>         Environment: Mac os 10.5, Eclipse Galileo, Jboss 5,
>            Reporter: Francesco Chiarelli
>            Assignee: Edson Tirelli
>             Fix For: 5.1.0.M2
>
>
> I'm trying to use a sliding time fro count a facts with a condition.
>  I'have set a stream mode.
>  In test, with pseudo clock active, set this to current Time (it's
>  correct?), declare a fact type in drl with
> declare MyFact (i've a javabean)
>  @role(event)
>  @timestamp(myTimestamp)
> end
> attribute type of myTimestamp must be long or Date? I've tried with both
> but nothing, engine count all fact
> ex: n fact in x days ago from now, the statement over window:time(1s)
>  result always n fact. why?
>  in when:
> // $o : Order(<condition>)
> $nRic : Number(intValue<maxRic) from accumulate($n: Order(this==$o)
> over window:time(1s),count($n))
> ps. if i set a real clock altough a pseudo, in runTime i've a ClassCastExc. to JdkTimerService
> There is a test suite about count?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list