Hi I am new to alfresco so i appreciate your help. I am trying to add a new node ref as the new version of a document while editing his properties. My scenario i can create a PDF file with his properties as the content,after updating his properties, I am doing this with behavior/policies NodeServicePolicies.OnUpdateNodePolicy . example: when i edit the name I can see it inside the PDF file
But this new file needs to be the new version of the file edited, i cant figure how to fix this. i appreciate yours answer. thanks in advance.
https://docs.alfresco.com/4.0/concepts/versioning.html
You're looking for versioning. Like Curtis mentioned, using API is an option, but Alfresco will do this for you automatically if you set it up that way. Also, creating a new version will not change node's nodeRef.