Blocking Set-State funcationality when WF is in Progress
The best way to do this is through an action filter that uses the wtdocument to get list of running processes against it. If the wfprocess is the one that you are interested in.disable the action. It will keep set state from showing (hidden) or disabled (greyed out)
RE: Blocking Set-State funcationality when WF is in Progress
You don't need any customizations for this. This is now standard in Windchill 8 to 9.1 with WF transitions. You have to remove the transitions of set state for certain roles. The admin is usually the one who can set state to released while the author can set state from in work to under review and revise from release to in work.