Ooh, it seems Eclipse outwitted me once again. But I think I made it on the 2nd try...<br>Sorry<br>W<br><br>PS: <br>(1) A decision on the matter of DSL variables would be appreciated. I&#39;m currently<br>developing a non-trivial DSL, and learning a lot about what&#39;s needed for a<br>
<i>real world </i>application. Most importantly, some means of structuring the<br>DSL definition, so that they can be applied distinctively to specific groups of<br>rules. This reduces the risk of &quot;ricochets&quot; if you know what I mean. <br>
<br>I&#39;ve thought about proposing an entirely new approach, based on DRL syntactic<br>entities, i.e., the expansion of a DSL phrase must be a &quot;medium level&quot; non-terminal<br>of the DRL language. But this certainly restricts phrase parameters to terminals.<br>
If it&#39;s too sophisticated, you end up with a parser/compiler almost as nasty as ANTLR3.<br><br>(2) I haven&#39;t forgotten the spreadsheet fixes. There&#39;s another relic I found: some of<br>the column keywords have single letter alternatives (e.g. &quot;U&quot; for &quot;no-loop&quot;, &quot;X&quot; for<br>
&quot;activation-group&quot;). Should I retain them - they are NOT documented in Expert.<br><br>Should I add timer(int:)? Duration is deprecated, I&#39;ll leave this in but it ought to<br>be marked clearly as such in the documentation, at least.<br>
<br>Please advise - I  can live with everything - non of this is important for my company,<br>but I want to get the fixes and additions out of my thinning hair ;-)<br><br> <br><br><br><br><div class="gmail_quote">On 11 December 2010 00:00, Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 10/12/2010 08:44, Wolfgang Laun wrote:<br>
&gt; Done. There are two FIXME-tests at the end, one for timer() + not; the other one<br>
&gt; demonstrating that drools.halt() from a rule with a timer() doesn&#39;t<br>
&gt; terminate the<br>
&gt; session - it also keeps firing. Notice that even with no timer() on<br>
&gt; the &quot;halt&quot; rule<br>
&gt; but with another rule having a periodic timer &quot;overrules&quot; the drools.halt().<br>
</div>Did you commit? as I&#39;m not seeing anything in trunk.<br>
<a href="http://fisheye.jboss.org/changelog/JBossRules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/TimerAndCalendarTest.java?max=30&amp;view=all" target="_blank">http://fisheye.jboss.org/changelog/JBossRules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/TimerAndCalendarTest.java?max=30&amp;view=all</a><br>

<font color="#888888"><br>
Mark<br>
</font><div><div></div><div class="h5">&gt; -W<br>
&gt;<br>
&gt;<br>
&gt; 2010/12/10 Mark Proctor&lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;:<br>
&gt;&gt; On 09/12/2010 14:50, Wolfgang Laun wrote:<br>
&gt;&gt;<br>
&gt;&gt; I can confirm that the timer rule continues to fire<br>
&gt;&gt; - if the condition contains a not CE<br>
&gt;&gt; - even after the not CE should return false<br>
&gt;&gt;<br>
&gt;&gt; Repeating timer firing stops for &quot;positive&quot; CEs turning to false.<br>
&gt;&gt;<br>
&gt;&gt; sounds like a bug :(<br>
&gt;&gt;<br>
&gt;&gt; Wolfgang, could you commit your test to TimerAndCalendarTest. Take a look at<br>
&gt;&gt; the tests there and follow a similar format, generally when there is only<br>
&gt;&gt; one or two small rules we prefer to inline the text rather than externalise<br>
&gt;&gt; it in a file, see testIntervalTimer<br>
&gt;&gt;<br>
&gt;&gt; So that it doesn&#39;t break hudson add FIXME to the start of the rule name,<br>
&gt;&gt; such as<br>
&gt;&gt; FIXME_testTimerWithNot<br>
&gt;&gt;<br>
&gt;&gt; Ideally open a jira and when you commit the code put the jira id in the<br>
&gt;&gt; commit messgae along with the jira title and a message something like<br>
&gt;&gt; &quot;adding failing unit test&quot;<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt;<br>
&gt;&gt; Mark<br>
&gt;&gt;<br>
&gt;&gt; -W<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 9 December 2010 15:06, OlliSee&lt;<a href="mailto:o.roess@seeburger.de">o.roess@seeburger.de</a>&gt;  wrote:<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; unfortunately not working, either.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Maybe it will help, if I describe the scenario more detailed.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have three A facts inserted at the beginning.<br>
&gt;&gt;&gt; Then the rule fires the first time after 5 seconds for every A fact and<br>
&gt;&gt;&gt; inserts the B events.<br>
&gt;&gt;&gt; Then I retract ONE of the B events, but the rule keeps firing for EVERY A<br>
&gt;&gt;&gt; fact, despite the B events remaining in the WorkingMemory.<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; View this message in context:<br>
&gt;&gt;&gt; <a href="http://drools-java-rules-engine.46999.n3.nabble.com/timer-and-duration-tp2057403p2057831.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/timer-and-duration-tp2057403p2057831.html</a><br>

&gt;&gt;&gt; Sent from the Drools - User mailing list archive at Nabble.com.<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; rules-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<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>
</div></div></blockquote></div><br>