[rules-users] Timer (int & cron) ignore when statement

kkelleyjr karl.kelley.jr at gmail.com
Thu Mar 29 20:54:15 EDT 2012


I have a very simple case that does not seem to work. The timer works
correctly as an int or cron but it seems to ignore the when part. here is
the rule...

rule "Database Processing Cron"
     timer ( cron: 0/15 * * ? * * * )
when $c : CronJennie()
     	eval( $c.hasInitialRunOccured() == false )  
then

   logger.info( "Database processing initial run..." +
$c.hasInitialRunOccured());
   $c.setInitialRunOccured();
   update($c)
end

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

i have also done the when as:

$c : CronJennie(hasInitialRunOccured() == false )

I am using the lates version 5.4.0 beta2, any ideas? 

Thanks for any insight



--
View this message in context: http://drools.46999.n3.nabble.com/Timer-int-cron-ignore-when-statement-tp3869642p3869642.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list