<div>i&#39;m sorry i&#39;m a new drools user.. Can you try to be a little more clear?</div>
<div>thanks..<br><br>&nbsp;</div>
<div><span class="gmail_quote">2008/7/29, Ingomar Otter &lt;<a href="mailto:iotter@mac.com">iotter@mac.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Use logicals.<br><br>Am 29.07.2008 um 11:20 schrieb Claudio Rainoldi:<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span class="e" id="q_11b6e29dab6a0d84_1">Hi everyone,<br>isn&#39;it there a way to find when a rule isn&#39;t more active.<br>For example if i have this rule:<br><br><br>rule &quot;light 2 on&quot;<br>dialect &quot;java&quot;<br>
when<br>Light (name==&quot;0/0/2&quot;, actualvalue==&quot;1&quot;);<br>then<br>System.out.println(&quot;luce 2 on&quot;);<br>end<br><br><br>when someone turn on the light 2 i discover that the rule is fired using an<br>Agenda Event Listener and the method afterActivationFired;<br>
But when someone turn off the ligth isn&#39;t there a similar way to discover<br>that the rule &quot;light 2 on&quot; isn&#39;t more active.<br>My only solution is to use the dual rule:<br><br>rule &quot;light 2 on_dual&quot;<br>
dialect &quot;java&quot;<br>when<br>not (Light (name==&quot;0/0/2&quot;, actualvalue==&quot;1&quot;));<br>then<br>System.out.println(&quot;luce 2 off&quot;);<br>end<br><br>Isn&#39;t there a more sample way to do this?<br>
Thanks in advance.<br><br><br>Cla<br></span></div>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote><br>_______________________________________________<br>
rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>