diff --git a/jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTask.java b/jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTask.java index f4c0fd208fc..9b80e6e7176 100644 --- a/jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTask.java +++ b/jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTask.java @@ -36,8 +36,6 @@ public DefaultUserTask(Application application, String id, String name) { super(id, name); this.application = application; this.userTaskInstances = application.config().get(UserTaskConfig.class).userTaskInstances(); - this.userTaskInstances.setDisconnectUserTaskInstance(application.get(DefaultUserTasks.class)::disconnect); - this.userTaskInstances.setReconnectUserTaskInstance(application.get(DefaultUserTasks.class)::connect); } @Override