A better work around is to:
- create a .persist file and exclude these Items from being saved.
- create a rule that triggers when this Item changes
- if and only if it’s a valid state, call
.persist()
on the Item to save the value
That will only store valid values to the database.