Process Definition:
<userTask id="tskDivHeadReviewDoc" name="Division Head Review" activiti:formKey="nlcwf:frmReviewDoc">
<extensionElements>
<activiti:taskListener event="create" class="xxx.KMAssignmentHandler" />
</extensionElements>
</userTask>
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.
I don't see any task assignee in your configuration which is probably the reason why you get null for delegateTask.getAssignee()
Cheers,
Ciju
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.