Hi All,
I am facing a issue not able to disable the afterCreateVersionPolicy in my custom service is not working.
In my project we are defined the policy afterCreateVersionPolicy and doing some bussiness logic, in my custom service i need to execute that policy when node is creating version so i am disabling it through behaviour filter that is not working code as below.
behaviourFilter.disableBehaviour(nodeRef,ContentModel.ASPECT_VERSIONABLE);
Map<QName, Serializable> versionProperties = new HashMap<QName, Serializable>();
versionProperties.put(ContentModel.PROP_INITIAL_VERSION, true);
versionProperties.put(ContentModel.PROP_AUTO_VERSION, false);
version=versionService.createVersion(nodeRef, versionProperties);
even though we disabled the version policy it is executing.
Thanks
Param