12-11-2017 07:41 AM
I have a custom aspect with a property like:
<aspect name="cofc:process">
<title>Process</title>
<properties>
<property name="cofc:process">
<title>Process</title>
<description>Name of the process</description>
<type>d:text</type>
<mandatory>true</mandatory>
<index enabled="true">
<tokenised>TRUE</tokenised>
<facetable>false</facetable>
</index>
<constraints>
<constraint name="cofc:LIST_3f87a64c-c3f8-4939-888f-9f64b985392e" type="LIST">
<parameter name="allowedValues">
<list>
<value>Join the association</value>
<value>Edit profile</value>
<value>Leave the association</value>
</list>
</parameter>
<parameter name="caseSensitive">
<value>true</value>
</parameter>
<parameter name="sorted">
<value>false</value>
</parameter>
</constraint>
</constraints>
</property>
</properties>
<associations/>
<overrides/>
<mandatory-aspects/>
</aspect>
The users have created some documents and they have assigned the value "Edit profile" to the property "Process".
I have noticed that changes in the list of values of the custom model are not reflected in the old documents. I mean, if I change the value "Edit profile" to "Edit user" in the custom model, the old documents have no changed the value to "Edit user".
Is there any way that a change in the model causes an automatic change in all affected documents?
12-11-2017 09:01 AM
Existing document will not get updated when you update the content model.
You need to write patch for this.You can study it on below link.
12-11-2017 11:25 AM
Hi:
In addition, this would be somehow possible if you used i18n in constraint lists in a bootstrap content model, changing the values (but preserving the original keys).
It seems that you use model manager, but what it is not clear for me is how do you changed the model (deactivate-change-activate) with existing data.
Regards.
--C.
12-11-2017 12:38 PM
Hi!
I have created del custom model using the Model Manager, so in order to change the model I have to deactivate-change-activete as you say.
Thank you.
Explore our Alfresco products with the links below. Use labels to filter content by product module.