cancel
Showing results for 
Search instead for 
Did you mean: 

Automation chain with unique dc:title

joseantonio_
Champ in-the-making
Champ in-the-making

Hello

I would like to only allow the creation of documents with a single dc title, but the user to enter metadata.I've tried to do a query, and then, delete the docuemnt, but I have a lot problems. What would be the best option?

3 REPLIES 3

rg1_
Star Contributor
Star Contributor

Please clarify...Is your requirement to define a new folder type, say 'Unicity Folder', that ensures the names of its child documents (based on their titles) are unique?

joseantonio_
Champ in-the-making
Champ in-the-making

Hello,

I'll try to explain better...

First, the user put his documents with their dc:title, whatever he wants, for instance A1. But, I want unique documents in my system , I mean documents that not have repited their dc:title.

So, I made automation chain which searching the same dc:title (with a Fetch Query) and.... if This.size()=0, create document; if not erase the document. But I had a lot of problems when I erased the document...

Any advice?

Thank you very much

You cannot reliably enforce uniqueness of child titles within a folder using an automation chain. This must be done at a much lower level in the system which includes adding a unique conditional database constraint on the hierarchy table parentid and name columns for VCS-based Nuxeo deployments. A DBS-based deployment has a dependency on a [Nuxeo Shared State Manager][1] being implemented.

Getting started

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.