The method callScript(String) is undefined

Hello,

I try tu set a rules in the standard.rules file:

import org.openhab.core.library.types.*
import org.openhab.model.script.actions.*
import org.openhab.core.persistence.*
import java.lang.Math
import java.util.Calendar
import java.util.Date
import java.util.TimeZone
import java.text.SimpleDateFormat

rule "Public Holiday"
when
    Time cron "0 0 0 * * ?" or
    System started
then
    callScript("holiday")
end

The row with “callScript” is marked as wrong.
Error message is “The method callScript(String) is undefined”

How is the correct syntax to run a script???

Thank you

Elmar

If you are really using OH 2 you should not be using those imports. Everything in org.openhab.core and org.openhab.model have moved to eclipse smart home packages. But they also no longer need to be imported. Try removing the imports and see if it works.

Also, I’ve found Designer often has problems with actions. Does it run?

Yes I’m using OH 2 install from repository on a raspberry pi 3. I have removed the imports but the same problem. The rule is a sample from https://github.com/openhab/openhab/wiki/Samples-Rules#how-to-calculate-public-holidays.
How could I see, if the actions are ok?

Thanks

Oh I think you are right, after a restart of oh2 the script are working. I is a problem from the designer. Thank you for your help!!!