AnsweredAssumed Answered

Not versioning when changes in Categories

Question asked by robeitor on Feb 25, 2010
* Edit post
    * Delete post
Hi,

I need some help.

I'm developping an advanced workflow in Alfresco and I have a problem. During the workflow I change the categories of the document and these changes makes new versions of the document. I want changes in categories which doesn't change document versions. But in the other hand I want other changes in other properties makes new versions.

So, if I use in contentModel.xml:

<aspect name="cm:versionable">
<title>Versionable</title>
<properties>
<property name="cm:versionLabel">
<title>Version Label</title>
<type>d:text</type>
<protected>true</protected>
</property>
<property name="cm:initialVersion">
<title>Initial Version</title>
<type>d:boolean</type>
<default>true</default>
</property>
<property name="cm:autoVersion">
<title>Auto Version</title>
<type>d:boolean</type>
<default>true</default>
</property>
<property name="cm:autoVersionOnUpdateProps">
<title>Auto Version - on update properties only</title>
<type>d:boolean</type>
<default>false</default> <———————————————————
</property>
</properties>
</aspect>

All changes in properties dont change version. But I want only for categories.

I have made this think as well in core-services-context.xml:

<bean id="versionableAspect"
class="org.alfresco.repo.version.VersionableAspect" init-method="init">
<property name="policyComponent">
<ref bean="policyComponent" />
</property>
<property name="versionService">
<ref bean="versionService"/>
</property>
<property name="nodeService">
<ref bean="nodeService"/>
</property>
<property name="excludedOnUpdateProps">
<list>
<value>cm:categories</value> <—————————————–
</list>
</property>
</bean>


But doesn't make anything!

I don't have any more ideas. It's posible to pause the versioning during the workflow? Just when I'm changing the category?

Thank you

Outcomes