NXP-25761, we deprecated deleted lifecycle state.
When a Nuxeo instance uses the new trashed boolean, it is no longer possible to follow delete/undelete transition.
Things are handled correctly in 10.3 but in 10.2 we can end up with both documents in deleted state and documents using the trash service, which is bad.
We want to warn user about usage of these transitions and lifecycle state when he's using a 10.2 instance (properly handled since 10.3 + deprecated but problematic in 10.2).
As this is true for new instance or migrated instance, we may want to display it in such cases if possible.
In 10.2 when a lifecycle contains at least one of these:
- the deleted state
- the delete transition
- the undelete transition
a warning is displayed on the feature:
If you migrated to the new trash service, deleted state and corresponding transitions should not be used in 10.2. See [how to update your configuration](https://doc.nuxeo.com/studio/how-to-migrate-trash-configuration in a new page) to prevent errors at runtime.
In 10.3+ in the same conditions the following message is displayed:
Deleted state and corresponding transitions are deprecated since 10.3 / LTS 2019. We recommend [updating your configuration](https://doc.nuxeo.com/studio/how-to-migrate-trash-configuration in a new page) to prevent warnings at runtime if you upgraded to the new trash service.