As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public void setAssignee(String assignee) { if (assignee==null && this.assignee==null) { return; } if (assignee!=null && assignee.equals(this.assignee)) { return; } this.assignee = assignee; CommandContext commandContext = Context.getCommandContext(); if (commandContext!=null) { commandContext .getHistoricTaskInstanceManager() .setTaskAssignee(id, assignee); // if there is no command context, then it means that the user is calling the // setAssignee outside a service method. E.g. while creating a new task. if (commandContext!=null) { fireEvent(TaskListener.EVENTNAME_ASSIGNMENT); } } }
<br> public void setAssignee(String assignee) {<br> // …<br> CommandContext commandContext = Context.getCommandContext();<br> if (commandContext!=null) {<br> // … <br> // if there is no command context, then it means that the user is calling the <br> // setAssignee outside a service method. E.g. while creating a new task.<br> if (commandContext!=null) {<br> fireEvent(TaskListener.EVENTNAME_ASSIGNMENT);<br> }<br> }<br> }<br>