I'd like to build a rule which tests for a special property.
rule "Timer"
when
clock : AlarmClock( $time : alarmTime)
then
// some consequences..
the problem is the $time. I bound it to a variable so far.
It is a complex object which I actually want to check for
getAlarmTime().getHour() > 10
I dont know how.
I want the rule to fire if the hour of the alarmTime has reached a certain
value.
--
View this message in context:
http://www.nabble.com/rule-creation-tf3709922.html#a10376825
Sent from the drools - user mailing list archive at
Nabble.com.