06-15-2012 12:33 AM
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);
}
}
}
06-15-2012 02:03 AM
06-15-2012 02:21 AM
06-15-2012 03:00 AM
public void setAssignee(String assignee) {
// …
CommandContext commandContext = Context.getCommandContext();
if (commandContext!=null) {
// …
// 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);
}
}
}
06-15-2012 03:05 AM
06-15-2012 03:20 AM
06-15-2012 03:26 AM
06-15-2012 03:40 AM
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.