Hi
after updating to 2.1.0-SNAPSHOT when trying to run my rule and persistence i get errors in the log
10:31:07.239 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'rain.rules' is either empty or cannot be parsed correctly!
10:31:07.389 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'rain.rules' has errors, therefore ignoring it: [6,1]: mismatched input ')' expecting 'end'
This is my rule
rule "Rain Total Changed"
when
Time cron "0 * * * * ?"
then
// Post totals update
)
Oregon_RainTotal_H.postUpdate(Oregon_RainTotal.deltaSince(now.minusHours(1),"rrd4j")
Oregon_RainTotal_D.postUpdate(Oregon_RainTotal.deltaSince(now.minusDays(1),"rrd4j")
Oregon_RainTotal_W.postUpdate(Oregon_RainTotal.deltaSince(now.minusWeeks(1),"rrd4j")
end
when I try to delete the ) at the X mark some new errors pops up.
this is my persistence file.
// persistence strategies have a name and a definition and are referred to in the "Items" section
Strategies {
// for rrd charts, we need a cron strategy
everyMinute : "0 * * * * ?"
//everyHour : "0 0 * * * ?"
//everyDay : "0 0 0 * * ?"
//everyWeek :"0 0 0 0 * ?"
}
Items {
Oregon_RainTotal : strategy = everyMinute
Oregon_RainTotal_W : strategy = everyMinute
Oregon_RainTotal_H : strategy = everyMinute
Oregon_RainTotal_D : strategy = everyMinute
}
I this error in the log
10:40:03.506 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'rrd4j.persist' has errors, therefore ignoring it: [1,1]: mismatched input '<EOF>' expecting 'Strategies'
when I try to delete the ) at the X mark some new errors pops up.
No error is shown in this file