cancel
Showing results for 
Search instead for 
Did you mean: 

Acced to an aspect property

roseta
Champ in-the-making
Champ in-the-making
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!
1 REPLY 1

roseta
Champ in-the-making
Champ in-the-making
Maybe this can be usefull for someone, so I post my own solution:

I should write "document.getOwner();" insted of creator. This way works as I wanted.