Workflow State Not Updated to Cancel

Hi,

I have customized a workflow but I am not able to cancel the document.
When I cancel the document its workflow state doesn’t gets change.

I have tried every way, whenever I complain to ERPNext Team, they says that this is working fine at our place but they do not provide any proof for that. Can anybody help me to get the solution for the same.

Share some details, screenshots etc.