I'm working on vanilla SalesOrder Entity and I have to check something when a record is saved (onSave), but when the record is canceled (also saving a record) I don't. How can I find in onSave/context that my record is saved because it was canceled (JS)