return !(persistence.tools.getOldValue({E}, “status”) in (“CLOSE”))
The solution works fine when user tries to change any other attribute for closed record except ‘Status’ itself. If user changes ‘status’ attribute from “CLOSE” to any other, it allows.
Status is Enum with two value - Assigned and Closed
I can’t reproduce described behavior - status editing from Close to Assigned is denied in my realization.
Please, check it in this test project: OrderWithEnum.zip (86.4 KB)
You need to create new user under UserGroup access group and log in with this newly created user to test the constraint.
Please, let me know the results.