As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi,
The goal is to allow this deletion only if the articles have a "valid" or "aRediger" workflow status
I tried to interceive with an event 'AboutToRemove' to perform some treatment but it does not work anymore.
Can you give me some help.
Hi Lassad,
you can make a lifecycle contribution for your DocumentType with your states "valid", "aRediger", etc; and define your transition "delete" only from "valid" and "aRediger". It works for a global delete control of your documents: UI, APIv1, Automation, ... Also, you can define the "undelete" transition to recovery it.
You can find below documentation about design or contribute for your lifecycle:
https://doc.nuxeo.com/studio/life-cycle/
http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform-10.1/viewContribution/org.nuxeo.ecm.core.LifecycleCoreExtensions--lifecycle
Hope it helps.
Regards, VS!
Hi Victor,
Hi Lassad, you can find information about how to contribute here