How to abort delete document action if validations fail

Hello All,

How can we abort the delete document action based on validation failure i.e. based on a field value.

Thanks,
Savan

Hi,

You can hook into a delete event, but I don’t think you can abort it. What you could do is create some custom actions in the workflow. See this previous thread for advice.

Hi @jasper.floor

Can you please provide guidance on how to create hook or any documentation?

Aborting an event is not a show stopper for now.

Thank you!!

Hi @jasper.floor

I couldn’t find how to add hook to the HippoWorkFlow events in CMS application in the given documentation.

Can you please advice?

Thanks
Savan

Hi,

here is a more detailed example/

Hi @jasper.floor

I could see only post-processing info. Not sure if we have any document available that can create a pre-processor hook. I am working on scenario where I want to do processing before events recorded in the repository. For example do rest API call before document deleted upon delete document action.

I don’t think that is possible. If you want that you will have to create a custom workflow.

see:

Thank you @jasper.floor for your reply. This is really helpful.