Is it possible to control the visibility of operation buttons on the task bar by linking them to attributes of the task?
For example a task with a workflow "x" might only be able to do operation "y" if the custom field "z" of the task is > 0. Currently I can check the custom field in a script associated with the operation and throw an exception if the operation is not permitted, but ideally I'd like to prevent the operation button being visible at all when not permitted.
I realise that I could create two workflows, one with operation "y", one without but how would I then switch the task between the workflows which would seem to be an admin task rather than a user task editing a custom field?