Use import and simple class names - the mixture is confusing.
Display a little more info in your printlns and show us what the
output really is.
If rule "start monitoring sensors" fires and there's no other rule, then
also
rule "nothing for 1m" must fire, immediately.
-W
On 08/02/2012, juankera <juankera(a)gmail.com> wrote:
Thanks for your help... but i'm still trying to run the most
basic
example...
with no luck.
I can't see why second rule is not fired... as i understand, it will be
fired because of first rule action.
But i can't see anything. Any help will be appreciated.
declare Monitor
stateEvent : org.openhab.core.drools.event.StateEvent @key
itemName : String @key
end
rule "start monitoring sensors"
when
$se: StateEvent( $in: itemName )
then
org.openhab.demo.Monitor m = new Monitor( $se, $in );
insert( m );
System.out.println( "yikes¡");
end
rule "nothing for 1m"
when
$m: Monitor( $in: itemName )
then
System.out.println( "not working: " + $in );
end
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-v...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users