logo       

Re: [drools-user] How does the duration attribute work ?: msg#00104

java.drools.user

Subject: Re: [drools-user] How does the duration attribute work ?

It uses a timer - basically if the condition holds true after XXX amount of time (XXX is milliseconds) then the rule will activate.
Use it for temporal rules in stateful applications, eg alarms, monitoring, escalatino etc. The "trouble ticket" example I believe uses it.

For really long running tasks though, it is not suitable (as it uses a timer) - best to use a process engine like jBPM for persistable long running timed tasks.

On 12/14/06, nicolae oana <oananicolae1981@xxxxxxxxx> wrote:
Hello,

I have read the Drools 3.0.5 manual but I don't understand what effect has the use of the duration attribute. In what context should be use and for what purpose?

King regards,
               Oana



Access over 1 million songs - Yahoo! Music Unlimited.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise