AnsweredAssumed Answered

I need to override notify() method of TaskListener. I have given the relevant code below

Question asked by solomon0566 on Aug 26, 2017
Latest reply on Sep 1, 2017 by cjose

Process Definition:

<userTask id="tskDivHeadReviewDoc" name="Division Head Review" activiti:formKey="nlcwf:frmReviewDoc">
      <activiti:taskListener event="create" class="xxx.KMAssignmentHandler" />


Listener code:

public class KMAssignmentHandler implements TaskListener {
   public void notify(DelegateTask delegateTask) {
      System.out.println(delegateTask.getDescription()); //prints correctly

      System.out.println(delegateTask.getOwner()); // is null
      System.out.println(delegateTask.getAssignee()); // is null


The task description prints correctly, whereas owner & assignee returns null. Request help to get the details correctly.


Using Alfresco Community 5.1.0 with ldap authentication for logins and group management in alfresco


Thanks & Regards.