Dispatch Cancel Solidworks Enterprise PDM command

Has anyone examples for a dispatch script where the Cancel Solidworks Enterprise PDM command is used.

I was trying to use it in an action that was triggered during state transition.

I want to cancel the transition if a certain condition wasn't right but the Cancel Solidworks Enterprise PDM command doesn't seem to have effect.

Regards

Jeroen Dhondt

SolidworksSolidworks Pdm enterprise Pdm