WorkFlow Queries

Hello Everyone, I have some queries about working with the workflow
In workflow when it is saved as active. Some of the options are not available.
Example: while clicking the action button it shows that submit, cancel, and delete are not available when a workflow is active.
Can you explain how it is processing, I needed those options even if it is in an Active workflow state.

Instead of submit and cancel you need to define the docstatus as 1 or 2 in the workflow states table.
So when the document reaches the particular workflow state having a docstatus 1 (or 2) it is automatically submitted (or cancelled).