Modified Existing Pipeline to prevent when user deleting the content item

 This functionality implemented for, when user deleting the item, we are moving item to deletion workflow state instead of deleting the content item completely.


Alternatively we can say like "Remove the Delete access right from wherever you have defined it in your content tree."

For detailed reference, the below link covers

https://sitecore.stackexchange.com/questions/19262/adding-workflow-for-item-deletion

Step 1 : We need to create Deletion Approval workflow state. It contains the commands Approve for deletion and Reject. Approve command has the Delete action.


Step 2 : Then we have to create config file to update existing pipeline. It will patch(run) the processor, when user deleting content item in sitecore.

We have to specify type(Full class file name, AssemblyName), method(name of method).



Step 3 : We have to create class file to write the logic for updating Deletion Approval workflow state for the content item which user deleting.

Path of the class file : Cirrus.Foundation.Sitecore.Commands.Pipelines.CustomWorkflowDelete


Step 4 : Once the item moved to Deletion Approval workflow state, we have two commands. Those are Approve and Reject. If it is Rejected, it will go to the Draft state. If it is approved, it will go to Deletion Approved state.

In the Deletion Approved state, we have one action Delete item. 


Step 5 : Delete item action will have reference of class file in Type string field. The value should be Full class file name, AssemblyName.

It will cover functionality of deleting item in sitecore.

Path of the class file : Cirrus.Foundation.Sitecore.Commands.Pipelines.DeleteApproved




Comments

Popular posts from this blog

Email Experience Manager (EXM)

Federated Experience Manager (FXM)