My use case is to capture the transition of workflow on doctype when it moves from state A to state B. I am using workflow_state_var as the default status parameter and I tried to capture the change and perform some actions (call whitelisted server functions) but unable to do so. Here’s the relevant part of code snippet: