- Previous thread: rules-users - Help regrading branching of call to a rule depending upon date
- Next thread: rules-users - fireAllRules performance
- Threads sorted by date: jboss-rules-users 201007
Hi All,
I am trying to implement a timer in a rule so that it executes every 15min i
have the following code:
rule " When average temperature is greater than 19 turn on fans"
timer(int:0 15m)
when
$t : Temperature($room : room)
$fan : Fan( room == $room )
then
"i need to implement this yet
end
I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at
input 'timer' in rule ......
I read example 2.12. Example timer attribute uses from
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
and this is how it says to implement a timer.
Any help is greatly appreciated.
Kind regards,
James.
Hi All,
I am trying to implement a timer in a rule so that it executes every 15min i have the following code:
rule " When average temperature is greater than 19 turn on fans"
timer(int:0 15m)
when
$t : Temperature($room : room)
$fan : Fan( room == $room )
then
"i need to implement this yet
end
I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at input 'timer' in rule ......
I read example 2.12. Example timer attribute uses from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
and this is how it says to implement a timer.
Any help is greatly appreciated.
Kind regards,
James.
I am trying to implement a timer in a rule so that it executes every 15min i
have the following code:
rule " When average temperature is greater than 19 turn on fans"
timer(int:0 15m)
when
$t : Temperature($room : room)
$fan : Fan( room == $room )
then
"i need to implement this yet
end
I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at
input 'timer' in rule ......
I read example 2.12. Example timer attribute uses from
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
and this is how it says to implement a timer.
Any help is greatly appreciated.
Kind regards,
James.
Hi All,
I am trying to implement a timer in a rule so that it executes every 15min i have the following code:
rule " When average temperature is greater than 19 turn on fans"
timer(int:0 15m)
when
$t : Temperature($room : room)
$fan : Fan( room == $room )
then
"i need to implement this yet
end
I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at input 'timer' in rule ......
I read example 2.12. Example timer attribute uses from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
and this is how it says to implement a timer.
Any help is greatly appreciated.
Kind regards,
James.
This may be a stupid question, but are you running with the latest code or
an older version of Drools?
2010/7/29 james corrigan
Hi All,
I am trying to implement a timer in a rule so that it executes every 15min i have the following code:
rule " When average temperature is greater than 19 turn on fans"
timer(int:0 15m)
when
$t : Temperature($room : room)
$fan : Fan( room == $room )
then
"i need to implement this yet
end
I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at input 'timer' in rule ......
I read example 2.12. Example timer attribute uses from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
and this is how it says to implement a timer.
Any help is greatly appreciated.
Kind regards,
James.
an older version of Drools?
2010/7/29 james corrigan
Hi All,
I am trying to implement a timer in a rule so that it executes every 15min i have the following code:
rule " When average temperature is greater than 19 turn on fans"
timer(int:0 15m)
when
$t : Temperature($room : room)
$fan : Fan( room == $room )
then
"i need to implement this yet
end
I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at input 'timer' in rule ......
I read example 2.12. Example timer attribute uses from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
and this is how it says to implement a timer.
Any help is greatly appreciated.
Kind regards,
James.
Hi David,
I got it working, that was indeed the problem, i have two versions on my pc
- 5.0 & 5.1. I stupidly thought that the document was referring to all 5.x
versions.
Thanks for your reply.
Kind Regards,
James.
2010/7/30 David Sinclair
Kind Regards,James.2010/7/30 David Sinclair <dsinclair@chariotsolutions.com>
This may be a stupid question, but are you running with the latest code or an older version of Drools?2010/7/29 james corrigan <jamescorrig@gmail.com>
Hi All,
I am trying to implement a timer in a rule so that it executes every 15min i have the following code:
rule " When average temperature is greater than 19 turn on fans"
timer(int:0 15m)
when
$t : Temperature($room : room)
$fan : Fan( room == $room )
then
"i need to implement this yet
end
I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at input 'timer' in rule ......
I read example 2.12. Example timer attribute uses from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
and this is how it says to implement a timer.
Any help is greatly appreciated.
Kind regards,
James.
I got it working, that was indeed the problem, i have two versions on my pc
- 5.0 & 5.1. I stupidly thought that the document was referring to all 5.x
versions.
Thanks for your reply.
Kind Regards,
James.
2010/7/30 David Sinclair
Kind Regards,James.2010/7/30 David Sinclair <dsinclair@chariotsolutions.com>
This may be a stupid question, but are you running with the latest code or an older version of Drools?2010/7/29 james corrigan <jamescorrig@gmail.com>
Hi All,
I am trying to implement a timer in a rule so that it executes every 15min i have the following code:
rule " When average temperature is greater than 19 turn on fans"
timer(int:0 15m)
when
$t : Temperature($room : room)
$fan : Fan( room == $room )
then
"i need to implement this yet
end
I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at input 'timer' in rule ......
I read example 2.12. Example timer attribute uses from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
and this is how it says to implement a timer.
Any help is greatly appreciated.
Kind regards,
James.
Related Threads
- Re: GENERAL - Am I supposed to be all scared of compound primary keys? - postgresql-general
- Virtualbox remote nettwork conectivity - ubuntu-users
- PATCH - OMAP3: PM: fix AM35x musb issue with AUTOIDLE bit in CONTROL_SYSCONFIG - linux-omap
- C++/Shell Integration - xorg-general
- filetype detection for dbus configuration files - vim-dev
- Device enumeration at boot doesn't detect acpi battery. - linux-acpi
- crx - npapi opengl - chromium-extensions
- Exist-open - repeated exist:match - exist-open
- android-developers - Set Call Forward - android-developers
- Index annotations mixed with ORM mapping files - openjpa-users