AnsweredAssumed Answered

Extending person type.

Question asked by nowhere on Jun 24, 2009
Latest reply on Jun 24, 2009 by nowhere
Hi all…
I want to create a custom type extending cm:person, but I can't create object of this type: nodeService.createNode(…) doesn't work. It gives me following exception:

org.alfresco.web.scripts.WebScriptException: 05240007 Wrapped Exception (with st
atus template): 05240006 Can not create a home space when the uid is null or emp
ty

My custom type:

<type name="ri:autore">
         <title>Tipo autore del documento</title>
         <parent>cm:person</parent>
         <properties>
      <property name="ri:nome">
         <type>d:text</type>
      </property>
      <property name="ri:cognome">
         <type>d:text</type>
      </property>
    </properties>
    <associations> 
            <association name="ri:scrive">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>ri:documento</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association> 
         </associations>

      </type>

Any suggestion would be appreciated! Thanks :-)

Outcomes