We are acquiring a document lock by using xdmp:lock-acquire also we are setting properties like lockedBy, status, timeout on the locked document. w
xdmp:lock-acquire
lockedBy, status, timeout