[SOLVED] Mapdb always getting the same value back instead previous

No persistence is needed for any of the implicit variables.
You might well want it for other reasons (restore on startup for mapdb)

EDIT - when you make your real rule, account for previousState being NULL for the first update after booting system.

2 Likes