cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing nuxeo automation server to provide service to edit a version of document

SMAH_Haider
Star Contributor
Star Contributor

I want to add a chain of operations in nuxeo automation server, that will edit a document version. I know editing a version does not make sense, but this is the requirement of our client that we must meet. I am able to retrieve all versions of a document, version creation on a new document creation by event handling, but I cant edit a version of document.

Any help will will be appreciated. Thanks.

1 ACCEPTED ANSWER

Alain_ESCAFFRE
Star Contributor
Star Contributor

Versions are not editable, that's actually their main purpose. When you do a version, you archive it. You might want to copy the version document properties into a new document ? Or do the equivalent of what happens when you "restore" an older version in the interface ? Maybe you have a "branch versioning" use case ? (which is not possible at low level)

View answer in original post

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

Operation [Document.Update](http

SMAH_Haider
Star Contributor
Star Contributor

Thanks Florent for your reply. Yes, Document.Update edits the document. But it can only edit the live(checkout) version of a document. I want to edit an old version of a document, is there any way I can customize/ add chain of operations in nuxeo automation server to do that?

Alain_ESCAFFRE
Star Contributor
Star Contributor

Versions are not editable, that's actually their main purpose. When you do a version, you archive it. You might want to copy the version document properties into a new document ? Or do the equivalent of what happens when you "restore" an older version in the interface ? Maybe you have a "branch versioning" use case ? (which is not possible at low level)