I need to have the previous value of an Item in a rule that is triggered by an update. According to the documentation there should be an implicit variable previousState that is available in all rules that have an update trigger.
However if I use that variable it only get a script error in the log
22:26:33.885 [ERROR] [.script.engine.ScriptExecutionThread] - Rule ‘change_test’: An error occured during the script execution: index=0, size=0
One additional comment: I still think that the documentation is wrong. As in the documentation it states that there is an implicit variable that could be accessed in any rule that was triggered by a change.