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>