Alfresco: find the linked working copy of node

Is there a way to get a working Node instance of this locked node?

I am creating webscript using javascript for Alfresco.

Thank.

+3
source share
2 answers

You can recognize working copies using the cm: workingcopy method. They refer to the source document in the cm: source property.

You can use the following Lucene query:

+ ASPECT: "cm: workcopy" + @cm: source: "workspace: // SpacesStore / ....."

where you replace "workspace: // SpacesStore / ....." with the noderef of the drawn document.

+2
source

Alfresco 4 , cm: source . JavaScript isLockOwner - . , :

if (node.isLocked && node.properties["cm:lockOwner"] == person.properties["cm:userName"]) {
    var workingCopy = node.assocs["cm:workingcopylink"][0];
}
+2

Source: https://habr.com/ru/post/1743853/


All Articles