In Nuxeo, How to detect that a document is already open by nuxeo drive.

Hello,

In an automation script (javascript), I need to know if a Word document is currently open (by nuxeo drive) before doing operations on it. Is it possible to receive the same information in the webUI? Is it possible to receive the same information in a automation chain ?

Thank.

0 votes

1 answers

60 views

ANSWER



Hello,

I would say the best strategy is to configure Drive to lock the documents opened with Direct Edit

type an image title

I don't see any “Drive related” property which can help you in automation chain/scripting. Maybe look what you can do with the available operations: https://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform%20LTS%202019-10.10/listOperations (search “Drive”)

Regards

-1 votes



automation script / automation chain ignore the lock on the document
02/01/2021

That looks strange. You should detect if ecm:isCheckedOut = 1
02/01/2021