Rule and persistence fails after updating to 2.1.0-SNAPSHOT

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

There is a syntax error in your rule. Att lone 6, the ending parenthesis must be suppressed.

Could you show me what to change, because I have no clue what to do

Just suppress the 6th line just after “then” containing only “)”.

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

You were missing an end ) on the postupdates

Thanks it worked

What about your persistence error then?