AnsweredAssumed Answered

Task actionee but not the task asignee

Question asked by peadair on Jun 28, 2012
Latest reply on Jul 17, 2012 by peadair
    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"
               <activiti:field name="runAs"><activiti:string>admin</activiti:string></activiti:field>                  
               <activiti:field name="script">
                        logger.log("task owner:" + task.owner);
                        logger.log("task assignee:" + task.assignee);