AnsweredAssumed Answered

Update aspect definition to extend from new parent aspect

Question asked by jamen on Apr 2, 2008
Hi,

I'm currently working on some functionality which requires us to redefine our aspect definitions in the content model.  The following is the existing aspect definition:


<aspect name="lm:workflowable">
   <title>Workflowable</title>
   <properties>
      <property name="lm:site">
         <title>Site</title>
            <type>d:string</type>
      </property>
      <property name="lm:targetLocation">
         <title>Target Location</title>
         <type>d:string</type>
      </property>
      <property name="lm:approver">
         <title>Approver</title>
         <type>d:string</type>
      </property>
   </properties>
</aspect>

The proposed new definition is below:


<aspect name="lm:targetable">
   <title>Targetable</title>
   <properties>
      <property name="lm:site">
         <title>Site</title>
         <type>d:string</type>
      </property>
      <property name="lm:targetLocation">
         <title>Target Location</title>
         <type>d:string</type>
      </property>
   </properties>
</aspect>

<aspect name="lm:workflowable">
   <parent>lm:targetable</parent>
   <title>Workflowable</title>
   <properties>
      <property name="lm:site">
         <title>Site</title>
         <type>d:string</type>
      </property>
      <property name="lm:targetLocation">
         <title>Target Location</title>
         <type>d:string</type>
      </property>
      <property name="lm:approver">
         <title>Approver</title>
         <type>d:string</type>
      </property>
   </properties>
</aspect>

If I proceed with the proposed content model changes, do I need to be concerned about nodes in an existing repository failing integrity checks or other problems where nodes have the aspect applied when the old lm:workflowable aspect was applied (prior to the proposed change).  Is it OK to assume that the new definition for lm:workflowable with a new parent won't impact existing documents with the lm:workflowable aspect applied prior to the change to the content model?  Will I need to migrate the existing content using this aspect to be compatible with the new content model?

Regards
Jamen

Outcomes