AnsweredAssumed Answered

Swimlanes and alfresco users/person

Question asked by red15 on Jan 17, 2007
I have a question about swimlanes and how you can link users to them.

My processdefinition I created makes it necessary to have 4 swimlanes (aka users) in it.

Please see attached image (if image breaks forms regulations let me know, I'll link it via URL instead of IMG)


Now I'm trying to add pieces of <script> code in the processdefinition so that all permissions of folders will be set appropriately to the current task.

To do this I need to have their username so I can add them by saying
folder.setPermission("Read", [insert username here]);

What I want to be able to do is let the current person, who is deciding where it has to go now, fill in the username (probably by searching) and the permissions of the folders get set. (I'm using <event type="task-create"> here)

I'm using 1.4.0 at this time, but if you can verify this will not work in anyway without having access to the person reference I can make work of compiling it from SVN.