AnsweredAssumed Answered

Disable the AfterCreateVersionPolicy in Java is not Working

Question asked by pmrreddy on Feb 27, 2017
Latest reply on Feb 27, 2017 by pmrreddy

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.


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.