AnsweredAssumed Answered

Thread safety of javascript based web script

Question asked by narayana.giri on Jun 19, 2014
Latest reply on Jun 19, 2014 by narayana.giri
Created the following web script to assign a unique identifier through aspects for each uploaded document :

docID = parseInt(["my:uniId"]);
NewDocID = docID + 1;["my:uniId"] = NewDocID;;["my:uniId"] = NewDocID;;

The above web script is assigned to space as a rule to apply for each upload.

Is the above web script is thread safe(If multiple users try to upload documents simultaneously using Alfresco Web Service API or through Alfresco Explorer, the above unique identifier will take care of concurrency?)