AnsweredAssumed Answered

Acced to an aspect property

Question asked by roseta on Jan 9, 2011
Latest reply on Jan 23, 2011 by roseta
In my model, I have a document with the aspect pro:aspectTema with the property pro:tutor.


<aspects>                     
   <aspect name="pro:aspectTema">
      <title>For Tema</title>
      <properties>
         <property name="pro:tutor">
            <type>d:text</type>
         </property>
      </properties>
   </aspect>
</aspects>

in the first step of my worklfow I would like to put the name of the creator of the document involved in the workflow into the aspect property "tutor"


document.properties["pro:tutor"] = document.creator;
document.save();

I guess I'd geting to tutor in the wrong way because I got this message: Java class "org.alfresco.repo.jscript.ScriptNode" has no public instance field or method named "tutor". The vaule is copied in the field tutor is "0d1814ab-8167-49b6-86ca-6dd8764d485c", Could anyone give me some piece of advice about how to reach to "tutor"???? Thanks!

Outcomes