cancel
Showing results for 
Search instead for 
Did you mean: 

cm:temporary aspect

rashmip
Champ in-the-making
Champ in-the-making
Hello

I am trying to delete a document permanently by clicking the delete document plugin from my Alfresco workdesk.

I do not want it to stay in the trashcan.

I tried adding the cm:temporary aspect to content model as below.



       <type name="owd:fileDocument">
         <title>File Document</title>
         <description>File document</description>
         <parent>cm:content</parent>
         <properties>
            <property name="owd:fileDate">
               <title>File Date</title>
               <type>d:date</type>
            </property>
         </properties>
                       <mandatory-aspects>
                             <aspect>cm:temporary</aspect>
                        </mandatory-aspects>
   </type>



But when I try to save my model I get an error saying failed to compile model.

Is there any mistake in what I have done.

Please help
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Is there any more information in the error message?

kaynezhang
World-Class Innovator
World-Class Innovator
Temporary aspect 's namespace is

<namespace uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />

not

  <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>


try with sys:temporary

rashmip
Champ in-the-making
Champ in-the-making
Thanks a lot. That worked