<div>Hi everyone,</div>
<div>isn&#39;it there a way to find when a rule isn&#39;t more active.</div>
<div>For example if i have this rule:</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>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</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>when someone turn on the light 2 i discover that the rule is fired using an Agenda Event Listener and the method&nbsp;<font size="2">afterActivationFired;</font></div>
<div><font size="2">But when someone turn off the ligth isn&#39;t there a similar&nbsp;way to discover that the rule &quot;light 2 on&quot; isn&#39;t more active.</font></div>
<div><font size="2">My only solution is to use the dual rule:</font></div>
<div>&nbsp;</div>
<div>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</div>
<div>&nbsp;</div>
<div>Isn&#39;t there a more sample way to do this?</div>
<div>Thanks in advance.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Cla</div>