I am currently working in 4.0a
I have written a custom behaviour that executes when an aspect of a given type is added to a node. I wanted to record in the aspect who did the adding (just the users full name, not the full user object).
Having written several repo tier web scripts I used person.properties.userName only to be told that "person" is not defined.
On the basis that a behaviour runs in a security aware context, Alfresco must "know" who is running it, but I am at a loss as to how to get that information in the absence of the "person" object.
For further information I have attached the data model context file in which the behaviour is defined and the javascript that gets executed.
If anyone could assist, I would be most grateful.
Bob Johnson