[rules-users] Any support for use of Timers / Calendars in Decision table (DURATION?)
Uday Kodukula
ukodukula at synacor.com
Tue Oct 26 11:05:02 EDT 2010
Hello,
I am trying to incorporate logic within my decision table where certain
rules are activated based on the Day of the week, and also time of day.
I noticed the presence of date-effective and date-expires, however that
doesn't take the timer / cron approach that I would like. I understand that
the rules can still be evaluated to true, and all that the Calendar / Timer
would do is preventing it from firing.
Also, I couldn't find much documentation on how to use the "DURATION"
attribute. Perhaps because it is now deprecated and we should be using
Calendars / Timers? (see reference below).
That being said, how can I can i use calendars / timers from a decision
table? Is that even supported yet?
Thanks,
Uday
---
"duration
default value: no default value
type: long
The duration dictates that the rule will fire after a specified
duration, if it is still true.
5.8.2. Timers and Calendars
Rule's now suport both interval and cron based timers, which replace the now
deprecated duration attribute."
(http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html)
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Any-support-for-use-of-Timers-Calendars-in-Decision-table-DURATION-tp1774306p1774306.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list