Prevent delete or rename of a document or folder

Hi all,

My application relies on certain documents to be present and at a specific location. While I appreciate there might be better ways of doing this, in the mean time, I would like to understand if there are ways that I can prevent the user from doing the following:

  • deleting a specific folder
  • renaming a specific folder
  • deleting a document
  • renaming a document’s URL (I don’t mind if they change the displayName).

Any pointers to approaches that could work here would be great!

Thanks in advance!




I managed to find a way to do it – by changing the workflow implementation class to a custom one that wraps the default implementation with some logic that checks whether an action is allowed or not, and sending a WorkflowException (with a cleaned up .toString()) back to the user.

Is that the recommended way to do it?




It seems hard to say this one is better than others nowadays regarding workflow customizations, but perhaps you can find it easier to customize and maintain custom SCXML action classes instead of the whole workflow implementation class. The following topic discusses something similar: