cancel
Showing results for 
Search instead for 
Did you mean: 

Task actionee but not the task asignee

peadair
Champ in-the-making
Champ in-the-making
Hi,
    How can I access the user who just completed a task when they were not the task assignee - i.e. they were a candidate user that did not assign the case to themself.

In that scenario task.owner and task.assignee are null which makes sense. Is there some other variable in scope that holds this task actionee?


            <activiti:taskListener event="complete"
                  class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
               <activiti:field name="runAs"><activiti:string>admin</activiti:string></activiti:field>                  
               <activiti:field name="script">
                  <activiti:string>
                        logger.log("task owner:" + task.owner);
                        logger.log("task assignee:" + task.assignee);
                  </activiti:string>
               </activiti:field>
            </activiti:taskListener>

Thansks,
Peter.
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

a user who completed a task should always be the final task assignee even if he never claimed the task explicitly. Please note that on Community Alfresco there might still be a couple of bugs that have already been fixed in Enterprise: https://issues.alfresco.com/jira/browse/ALF-13901 / https://issues.alfresco.com/jira/browse/ALF-14205

Regards
Axel

peadair
Champ in-the-making
Champ in-the-making
Thanks Axel,
    I was able to use the person root scope variable.
Regards,
Peter.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.