Handle Lock Unlock

Hi All,

Please consider the following Use Case: 

On Part Item , On After Update Server Event based on the property Values update the Related Document Property.

For this I am using the action edit to update the Document.

From the Design point of view, What should be the ideal way to handle the lock unlock status of the item being updated.

Regards,

ShrutiS