Rule timers using int: or cron: work pretty much as described in the Expert documentation.<br><br>With 5.1.1, there was an issue with timer(int:...) due to a parser bug, see <a href="https://issues.jboss.org/browse/JBRULES-2778">JBRULES-2778</a><br>
<br>Also, @expires with declare is working. Notice, though, that it is not alway immediately apparent why a fact is not retracted after the indicated time. Please provide a full working example where you find that it does not work.<br>
<br>-W<br><br><br><div class="gmail_quote">2011/11/25 Prashant Badhe <span dir="ltr"><<a href="mailto:prashant.badhe@gmail.com">prashant.badhe@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>
<p class="MsoNormal">we were using drools engine 5.0.1 version with rules having 'duration', 'agenda-group' attributes and now we want to upgrade drools engine to 5.1.1 or latest 5.3.0 but we find 'duration' feature not working. What are the equivalents of those features in 5.1.1 and in 5.3.0?</p>
<p class="MsoNormal"><br></p><p class="MsoNormal">From drools-expert document, 'duration' seems as deprecated with 'timer'. But even 'timer' is not working. Putting 'timer' attribute as:</p>
<p class="MsoNormal"><br></p><p class="MsoNormal">rule "test timer attribute"<br> agenda-group "enrichment"<br> auto-focus true<br> no-loop<br> salience 140<br> timer ( int: 5s )<br> //duration ( 5000 )<br>
when <br></p>
......<br> then<br> ......<br> end<br><br>gives "Error: java.lang.ArrayStoreException" Drools compilation error. "timer ( 5s )" compiles, but the rule never fires. <br><br>We are also planning to use @expires in declare. But facts are not seems to be expiring. <br>
<br>What am I missing here? What are the equivalent for 'duration' in 5.1.1/5.3.0 and how to use @expires in declare?<br>Please point us to some sample rules that uses these semantics and are working.<br><br>Thanks in advance,<br>
Prashant B.<br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>