We have version control out of box in alfresco or once we apply rule for versioning aspect it will version the content. I am using alfresco 2.2.2(sp2). but I want to versioning my metadata. Even though versionable aspect is applied I am not able to get the version for that. Is there any way I can version metadata in DM not WCM ??
Hi, The WCM persistence layer (AVM) is completely different and from DM. If you have the versionable aspect applied in DM, then versioning should be applied.
Are you saying that you update the metadata on a DM node but the node is not versioned?
Hi, The VersionableAspect class uses the onContentUpdate policy. The latter will never fire if you don't have content; it only fires when the content changes. If you want to version nodes that don't have content, the best is to write your own VersionableAspect handler and register it to listen to onUpdateProperties or onUpdateNode (methods defined on NodeServicePolicies interface). You can look at the RoutingContentService which translates the onUpdateProperties into onUpdateContent. Regards