Hey guys,
I followed this official Alfresco Guide LINK for adding custom Metadata to a file which is uploaded in a process by using "Publish to Alfresco". If I upload the same file with different Metadata-values via the process, the file gets auto-versioned (which is great), but my custom Metadata in version 2 are the same as in version 1 - nothing changed. If I downgrade the file to version 1 the custom Metadata-values are empty.
The custom Metadata file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<model name="myc:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Custom Model</description>
<author></author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<namespaces>
<namespace uri="http://www.mycompany.org/model/content/1.0" prefix="myc"/>
</namespaces>
<types>
<type name="myc:caseDocument">
<title>Case Document</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>myc:caseData</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<aspect name="myc:caseData">
<title>Case Data</title>
<properties>
<property name="myc:caseId">
<title>Case ID</title>
<type>d:long</type>
</property>
<property name="myc:caseName">
<title>Case Name</title>
<type>d:text</type>
</property>
<property name="myc:caseOpenedDate">
<title>Case Opened Date</title>
<type>d:date</type>
</property>
</properties>
</aspect>
</aspects>
</model>
Each version should have its own Metadata - that's logical...
Anyone has a clue how I can solve this?
Cheers, Jannik