<div>Hi everyone,</div>
<div>isn'it there a way to find when a rule isn't more active.</div>
<div>For example if i have this rule:</div>
<div> </div>
<div> </div>
<div>rule "light 2 on"<br>dialect "java" <br>when<br>Light (name=="0/0/2", actualvalue=="1");<br>then<br>System.out.println("luce 2 on");<br>end</div>
<div> </div>
<div> </div>
<div>when someone turn on the light 2 i discover that the rule is fired using an Agenda Event Listener and the method <font size="2">afterActivationFired;</font></div>
<div><font size="2">But when someone turn off the ligth isn't there a similar way to discover that the rule "light 2 on" isn't more active.</font></div>
<div><font size="2">My only solution is to use the dual rule:</font></div>
<div> </div>
<div>rule "light 2 on_dual"<br>dialect "java" <br>when<br>not (Light (name=="0/0/2", actualvalue=="1"));<br>then<br>System.out.println("luce 2 off");<br>end</div>
<div> </div>
<div>Isn't there a more sample way to do this?</div>
<div>Thanks in advance.</div>
<div> </div>
<div> </div>
<div>Cla</div>