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.