On Cancellation v-13:

I have Created a field that is read-only, setting a value in the backend script after submitting the documents. when I doc cancellation that fields become empty
I have tried to track it on before cancel after cancel events but before to called these functions it becomes the empty

Note :
in this doctype, I have my own workflow define
make a field with the name of reject in workflow on cancellation action