Changing the Assignee using TaskService.setAssignee(...) not triggering Update Event

Hi @StephenOTT, @Niall, @aravindhrs

Assigning an assignee to an existing User Task using Camunda TaskService.setAssignee(taskId, assignee); It is triggering the Assignment event listener but the Update event listener is not triggered.


@CamundaSelector(type = ActivityTypes.TASK_USER_TASK, event = TaskListener.EVENTNAME_UPDATE)
public class UserTaskCollectorUpdationListener extends ReactorTaskListener {
    
    @Override
    public void notify(DelegateTask task) {
        log.debug("Updating an user task. Id: [{}], Name: [{}], Assignee: [{}]", task.getId(), task.getName(), task.getAssignee());
    }

}

Thanks
Prabhaker Goli

Hi @aravindhrs can you please help in this?

@prabhakergoli did you checked that assignee was got changed?

Hi @aravindhrs,

Yes, the assignee got changed, I am handling the event using the Assignment change event. As per 7.12 the Assignment event is happened after the Create event.

Hi, the same problem happened to me but i expect it to happen when i change the suspension_state.
There is no event in my update class.

@Component
@CamundaSelector(type = ActivityTypes.TASK_USER_TASK, event = TaskListener.EVENTNAME_UPDATE)
public class UserTaskUpdatedEventListener extends ReactorTaskListener {
....