Workflow Transition from Draft to Cancelled

Hello Everyone,

I have a question regarding Workflow transition, how can I configure a transition from state with docstatus = 0 to state with docstatus = 2 (example state Draft to Cancelled)? Previously, this was not possible, but from this feat: Discard transactions by rutwikhdev · Pull Request #25971 · frappe/frappe · GitHub , it can now be done using the discard action, but it is also noted that the discard action becomes hidden when a workflow is active..

I would appreciate it if someone could explain how to configure this..

PS: I’ve looked in the documentation, git, or discussions, but haven’t found it yet. And I use v16.