<div>i'm sorry i'm a new drools user.. Can you try to be a little more clear?</div>
<div>thanks..<br><br> </div>
<div><span class="gmail_quote">2008/7/29, Ingomar Otter <<a href="mailto:iotter@mac.com">iotter@mac.com</a>>:</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'it there a way to find when a rule isn't more active.<br>For example if i have this rule:<br><br><br>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<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't there a similar way to discover<br>that the rule "light 2 on" isn't more active.<br>My only solution is to use the dual rule:<br><br>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<br><br>Isn'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>