06-05-2018 10:10 AM
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.
06-05-2018 10:52 AM
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/
Hope it helps.
Regards, VS!
06-06-2018 03:48 AM
Hi Victor,
06-06-2018 04:43 AM
Hi Lassad, you can find information about how to contribute here
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.