I hope you will not be interrupted by too many postings....

but -sorry- what is the result of

StockTick( symbol == "RHAT" ) over window:time( 1h30m15s )

?

a) all StockTick Entities which has symbol "RHAT" at some point during the time period? In other words: are StockTicks included where symbol had changed for e.g. within the first 30 minutes?

b) all StockTick Entities which have symbol "RHAT" when rule fires?

What means "over"? Is the rule allowed to fire after period of 1h30m14s, is this right?


Thanks
Thorsten


Edson Tirelli schrieb:

I started writing fusion docs a couple days ago. You can follow the progress through hudson builds or checking out the source code from svn.

Regarding your question, clock ticks are an abstract concept that depends on the clock implementation you are using. Since I wrote the test case you saw, I added support for proper time units, and as so, I recommend you use them. So, if you want to create a sliding window of 1 hour 30 min and 15 seconds, for instance, just do:

StockTick( symbol == "RHAT" ) over window:time( 1h30m15s )

I did not wrote that part of the docs yet, and in case anyone want to help, it would be most welcome.

   []s
   Edson

2009/2/1 Trägenap <[email protected] <mailto:[email protected]>>

    Hi,

    2 questions:

    1. I want to start a ruleflow-group for e.g. only once a day? I am
    not interested in the pattern matches during the complete day, just
    interested in the result of the single computation. My
    ruleflow-group is ordered using a salience, the final/last rule
    should be processed once a day, repeating at the next day, and so on...

    I found the example like this

    StockTick( symbol == "RHAT" ) over window:time( 60 )

    (...that happened in the last 60 clock ticks...)

    What is declared as "clock ticks"?


    2. I guess that drools fusion can solve my problem, is some more
    detailed doc available at this moment? (more than the ´pure´
    headlines containing doc I found everywhere?)

    Thanks for advice, including just giving keywords!

    Thorsten
    _______________________________________________
    rules-users mailing list
    [email protected] <mailto:[email protected]>
    https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com <http://www.jboss.com>


------------------------------------------------------------------------

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users


--


*Gesprächspartner:*

        



*Datum:*

        



*Inhalt:*

        



*TODO:*

        



*Rückmeldung bis:*

        



*Absender:*

        

 TT



_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to