[rules-users] cron timer not running

2011-12-07 Thread ollem
Hi!

I have a problem with getting cron based timers to start running.
The rules compiles just fine it's just that the timer never executes the
rule.
When I use timer ( int: 1m ) it works fine but not with cron timers.
My rule looks like the following:

rule whatever
timer(cron:* 0/1 * * * ?)
when
 ..

--
View this message in context: 
http://drools.46999.n3.nabble.com/cron-timer-not-running-tp3567205p3567205.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] cron timer not running

2011-12-07 Thread Wolfgang Laun
When do you expect this to fire? Is the condition true?
-W


On 07/12/2011, ollem olle.martens...@digitalroute.com wrote:
 Hi!

 I have a problem with getting cron based timers to start running.
 The rules compiles just fine it's just that the timer never executes the
 rule.
 When I use timer ( int: 1m ) it works fine but not with cron timers.
 My rule looks like the following:

 rule whatever
   timer(cron:* 0/1 * * * ?)
 when
  ..

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/cron-timer-not-running-tp3567205p3567205.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] cron timer not running

2011-12-07 Thread Wolfgang Laun
I think that the entry should be written

   cron: * 0-59/1 ...

-W


On 07/12/2011, Olle Martensson olle.martens...@digitalroute.com wrote:
 Thanks for answering.

 I expect the condition of the rule to be evaluated every minute by the
 cron timer.
 Yes the condition is true, that's why I'm puzzled. Maybe I have just
 misunderstood the way that timers work.

 What I want to achieve is:

 I want an event to represent a window in time and every minute that window
 is replaced by a new one. I want to be able to track a certain type of
 event that has happened during this window in time.
 I'm not looking for sliding windows.

 BR // Olle

 On 12/7/11 1:42 PM, Wolfgang Laun wolfgang.l...@gmail.com wrote:

When do you expect this to fire? Is the condition true?
-W


On 07/12/2011, ollem olle.martens...@digitalroute.com wrote:
 Hi!

 I have a problem with getting cron based timers to start running.
 The rules compiles just fine it's just that the timer never executes the
 rule.
 When I use timer ( int: 1m ) it works fine but not with cron timers.
 My rule looks like the following:

 rule whatever
 timer(cron:* 0/1 * * * ?)
 when
  ..

 --
 View this message in context:

http://drools.46999.n3.nabble.com/cron-timer-not-running-tp3567205p356720
5.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users